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
196e6a92
Commit
196e6a92
authored
May 02, 2018
by
Gan Quan
Browse files
bugfix
parent
10ec6e8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
graph.py
graph.py
+2
-2
No files found.
graph.py
View file @
196e6a92
...
@@ -128,8 +128,8 @@ class DiGraph(nx.DiGraph, NN.Module):
...
@@ -128,8 +128,8 @@ class DiGraph(nx.DiGraph, NN.Module):
source
=
T
.
stack
([
self
.
node
[
u
][
'state'
]
for
u
,
_
in
ebunch
])
source
=
T
.
stack
([
self
.
node
[
u
][
'state'
]
for
u
,
_
in
ebunch
])
edge_tag
=
T
.
stack
([
self
[
u
][
v
][
'tag'
]
for
u
,
v
in
ebunch
])
edge_tag
=
T
.
stack
([
self
[
u
][
v
][
'tag'
]
for
u
,
v
in
ebunch
])
message
=
f
(
source
,
edge_tag
)
message
=
f
(
source
,
edge_tag
)
for
u
,
v
in
ebunch
:
for
i
,
(
u
,
v
)
in
enumerate
(
ebunch
)
:
self
[
u
][
v
][
'state'
]
=
message
self
[
u
][
v
][
'state'
]
=
message
[
i
]
else
:
else
:
for
u
,
v
in
ebunch
:
for
u
,
v
in
ebunch
:
self
[
u
][
v
][
'state'
]
=
f
(
self
[
u
][
v
][
'state'
]
=
f
(
...
...
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