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
95f8ec83
Unverified
Commit
95f8ec83
authored
Jul 02, 2021
by
Rhett-Ying
Committed by
GitHub
Jul 02, 2021
Browse files
[Doc] fix docstring in to_block() (#3081)
parent
1bfc3118
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
python/dgl/transform.py
python/dgl/transform.py
+1
-0
No files found.
python/dgl/transform.py
View file @
95f8ec83
...
...
@@ -2120,6 +2120,7 @@ def to_block(g, dst_nodes=None, include_dst_in_src=True):
Examples
--------
Converting a homogeneous graph to a block as described above:
>>> g = dgl.graph(([1, 2], [2, 3]))
>>> block = dgl.to_block(g, torch.LongTensor([3, 2]))
...
...
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