Skip to content

Commit

Permalink
multidigraph_to_digraph: fix graph data transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
dhimmel committed Feb 22, 2022
1 parent 5c186ec commit 189f092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nxontology/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def multidigraph_to_digraph(
no_data_digraph.add_edges_from(
(u, v, digraph[u][v]) for (u, v) in no_data_digraph.edges()
)
no_data_digraph.update(digraph.graph)
no_data_digraph.graph.update(digraph.graph)
digraph = no_data_digraph
logging.info(
f"Reduced DiGraph by removing {n_edges_before - digraph.number_of_edges():,} redundant edges."
Expand Down

0 comments on commit 189f092

Please sign in to comment.