NetworkX

Previous topic

networkx.topological_sort_recursive

Next topic

networkx.eccentricity

networkx.is_directed_acyclic_graph

is_directed_acyclic_graph(G)

Return True if the graph G is a directed acyclic graph (DAG) or False if not.

Parameters:G : NetworkX graph