Unverified Commit 95f8ec83 authored by Rhett-Ying's avatar Rhett-Ying Committed by GitHub
Browse files

[Doc] fix docstring in to_block() (#3081)

parent 1bfc3118
......@@ -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]))
......
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