Skip to content

Commit

Permalink
fix (dmlc#3076)
Browse files Browse the repository at this point in the history
  • Loading branch information
BarclayII authored Jun 30, 2021
1 parent 7823ae2 commit a97aaa4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/dgl/sampling/node2vec_randomwalk.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ def node2vec_random_walk(g, nodes, p, q, walk_length, prob=None, return_eids=Fal
Note that if a random walk stops in advance, DGL pads the trace with -1 to have the same
length.
Parameters
----------
g : DGLGraph
The graph. Must be on CPU.
Note that node2vec only support homogeneous graph.
nodes : Tensor
Node ID tensor from which the random walk traces starts.
Expand Down

0 comments on commit a97aaa4

Please sign in to comment.