causal_networkx.io.to_networkx#
- causal_networkx.io.to_networkx(causal_graph)[source]#
Convert causal graph to networkx class.
- Parameters:
causal_graph :
DAG
A causal graph.
- Returns:
G :
nx.MultiDiGraph
The networkx directed graph with multiple edges with edge attributes indicating via the keyword “type”, which type of causal edge it is.