dmlc / dmlc/dgl

`node_type_subgraph` ignore batch structure of input graph

Open
#2,506 2 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
Python
Stars
14.3k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

## 🐛 Bug

## To Reproduce
```python
g = dgl.batch([g0,g1,g2])
g.node_type_subgraph(['type1'])
print(g.batch_size)
```

## Expected behavior
I assumed the `node_type_subgraph` returns the subgraphs of inputs, hence the output `g` has to have batch size of 3.
But it actually give me a single graph.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.