Note
This documents the development version of NetworkX. Documentation for the current release can be found here.
is_directed_acyclic_graph
Returns True if the graph G is a directed acyclic graph (DAG) or False if not.
G
G (NetworkX graph)
True if G is a DAG, False otherwise
bool