Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
srush committed Sep 11, 2019
1 parent f889527 commit 0be222d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_struct/cky.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def to_networkx(cls, spans):
for k, v in splits[0].items():
G.add_edge(indices[k], indices[(b, k[0], v)])
G.add_edge(indices[k], indices[(b, v + 1, k[1])])
return G
return G, indices

###### Test

Expand Down

0 comments on commit 0be222d

Please sign in to comment.