BuildModelFromDAG.dag_graph#

BuildModelFromDAG.dag_graph()[source]#

Return a copy of the parsed DAG as a NetworkX directed graph.

Returns:
networkx.DiGraph

A directed acyclic graph with the same nodes and edges as the input DAG.

Examples

g = builder.dag_graph()
list(g.edges())