Skip to content

Commit

Permalink
methods.causal: fixed missing module prefix in calls to corneto fun…
Browse files Browse the repository at this point in the history
…ctions
  • Loading branch information
deeenes committed Jul 3, 2024
1 parent 6754c74 commit c847d32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions networkcommons/methods/_causal.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def to_cornetograph(graph):
for u, v, data in graph.edges(data=True):
data['interaction'] = data.pop('sign')

corneto_graph = networkx_to_corneto_graph(graph)
corneto_graph = cn_nx.networkx_to_corneto_graph(graph)

return corneto_graph

Expand All @@ -66,7 +66,7 @@ def to_networkx(graph, skip_unsupported_edges=True):
if isinstance(graph, nx.Graph) or isinstance(graph, nx.DiGraph):
networkx_graph = graph
elif isinstance(graph, cn._graph.Graph):
networkx_graph = corneto_graph_to_networkx(
networkx_graph = cn_nx.corneto_graph_to_networkx(
graph,
skip_unsupported_edges=skip_unsupported_edges)
# rename interaction for sign
Expand Down

0 comments on commit c847d32

Please sign in to comment.