Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
b34a1e63
"src/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "0ac52d6f0970d5d91a1c88d4bf2e297d9298c642"
Unverified
Commit
b34a1e63
authored
Mar 17, 2021
by
Mufei Li
Committed by
GitHub
Mar 17, 2021
Browse files
Update subgraph.py (#2754)
parent
93074dd3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
python/dgl/subgraph.py
python/dgl/subgraph.py
+2
-1
No files found.
python/dgl/subgraph.py
View file @
b34a1e63
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment