Unverified Commit b34a1e63 authored by Mufei Li's avatar Mufei Li Committed by GitHub
Browse files

Update subgraph.py (#2754)

parent 93074dd3
...@@ -593,7 +593,8 @@ def edge_type_subgraph(graph, etypes): ...@@ -593,7 +593,8 @@ def edge_type_subgraph(graph, etypes):
"""Return the subgraph induced on given edge types. """Return the subgraph induced on given edge types.
An edge-type-induced subgraph contains all the edges of the given subset of An edge-type-induced subgraph contains all the edges of the given subset of
the edge types of a graph and the nodes incident by those edges. the edge types of a graph. It also contains all nodes of a particular type
if some nodes of the type are incident to these edges.
In addition to extracting the subgraph, DGL also copies the features of the In addition to extracting the subgraph, DGL also copies the features of the
extracted nodes and edges to the resulting graph. extracted nodes and edges to the resulting graph.
The copy is *lazy* and incurs data movement only when needed. The copy is *lazy* and incurs data movement only when needed.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment