Skip to content

Commit

Permalink
[Doc] fix docstring in to_block() (dmlc#3081)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhett-Ying authored Jul 2, 2021
1 parent 1bfc311 commit 95f8ec8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/dgl/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
Expand Down

0 comments on commit 95f8ec8

Please sign in to comment.