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
7cbb83db
"docs/vscode:/vscode.git/clone" did not exist on "2bbf8b67a7b6a944ba30033a3c930956f1dcd702"
Unverified
Commit
7cbb83db
authored
Nov 11, 2018
by
Gan Quan
Committed by
GitHub
Nov 11, 2018
Browse files
better bfs edge test (#142)
parent
d6c80e0c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
tests/pytorch/test_traversal.py
tests/pytorch/test_traversal.py
+2
-3
No files found.
tests/pytorch/test_traversal.py
View file @
7cbb83db
...
...
@@ -17,10 +17,9 @@ def toset(x):
return
set
(
x
.
tolist
())
def
test_bfs_nodes
(
n
=
1000
):
g_nx
=
nx
.
random_tree
(
n
)
g
=
dgl
.
DGLGraph
()
a
=
sp
.
random
(
n
,
n
,
10
/
n
,
data_rvs
=
lambda
n
:
np
.
ones
(
n
))
g
.
from_scipy_sparse_matrix
(
a
)
g_nx
=
g
.
to_networkx
()
g
.
from_networkx
(
g_nx
)
src
=
random
.
choice
(
range
(
n
))
...
...
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