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
da0c92a2
Commit
da0c92a2
authored
Jun 07, 2019
by
Quan (Andy) Gan
Committed by
Minjie Wang
Jun 06, 2019
Browse files
[BUGFix][Test] fix random bfs failure (#612)
parent
21ff161d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tests/compute/test_traversal.py
tests/compute/test_traversal.py
+4
-2
No files found.
tests/compute/test_traversal.py
View file @
da0c92a2
...
@@ -31,6 +31,8 @@ def test_bfs(n=1000):
...
@@ -31,6 +31,8 @@ def test_bfs(n=1000):
edges_nx
.
append
(
edge_frontier
)
edges_nx
.
append
(
edge_frontier
)
frontier
=
set
([
v
])
frontier
=
set
([
v
])
edge_frontier
=
set
([
g
.
edge_id
(
u
,
v
)])
edge_frontier
=
set
([
g
.
edge_id
(
u
,
v
)])
# avoids case of no successors
if
len
(
frontier
)
>
0
and
len
(
edge_frontier
)
>
0
:
layers_nx
.
append
(
frontier
)
layers_nx
.
append
(
frontier
)
edges_nx
.
append
(
edge_frontier
)
edges_nx
.
append
(
edge_frontier
)
return
layers_nx
,
edges_nx
return
layers_nx
,
edges_nx
...
...
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