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
a97aaa49
Unverified
Commit
a97aaa49
authored
Jun 30, 2021
by
Quan (Andy) Gan
Committed by
GitHub
Jun 30, 2021
Browse files
fix (#3076)
parent
7823ae2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
python/dgl/sampling/node2vec_randomwalk.py
python/dgl/sampling/node2vec_randomwalk.py
+2
-0
No files found.
python/dgl/sampling/node2vec_randomwalk.py
View file @
a97aaa49
...
@@ -20,10 +20,12 @@ def node2vec_random_walk(g, nodes, p, q, walk_length, prob=None, return_eids=Fal
...
@@ -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
Note that if a random walk stops in advance, DGL pads the trace with -1 to have the same
length.
length.
Parameters
Parameters
----------
----------
g : DGLGraph
g : DGLGraph
The graph. Must be on CPU.
The graph. Must be on CPU.
Note that node2vec only support homogeneous graph.
Note that node2vec only support homogeneous graph.
nodes : Tensor
nodes : Tensor
Node ID tensor from which the random walk traces starts.
Node ID tensor from which the random walk traces starts.
...
...
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