DAG.
topological_sort
Return a topological sort of the nodes in the graph.
Examples
>>> import causaldag as cd >>> g = cd.DAG(arcs={(1, 2), (2, 3)}) >>> g.topological_sort [1, 2, 3]