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
1f16f29b
Commit
1f16f29b
authored
Aug 16, 2018
by
Lingfan Yu
Browse files
bug fix
parent
96179b0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/pytorch/generative_graph/util.py
examples/pytorch/generative_graph/util.py
+1
-1
No files found.
examples/pytorch/generative_graph/util.py
View file @
1f16f29b
...
@@ -9,7 +9,7 @@ def convert_graph_to_ordering(g):
...
@@ -9,7 +9,7 @@ def convert_graph_to_ordering(g):
ordering
=
[]
ordering
=
[]
h
=
nx
.
DiGraph
()
h
=
nx
.
DiGraph
()
h
.
add_edges_from
(
g
.
edges
)
h
.
add_edges_from
(
g
.
edges
)
for
n
in
h
.
nodes
(
):
for
n
in
range
(
len
(
h
)
):
ordering
.
append
(
n
)
ordering
.
append
(
n
)
for
m
in
h
.
predecessors
(
n
):
for
m
in
h
.
predecessors
(
n
):
ordering
.
append
((
m
,
n
))
ordering
.
append
((
m
,
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