#

Note

This documents the development version of NetworkX. Documentation for the current release can be found here.

#

networkx.algorithms.dag.is_directed_acyclic_graph

is_directed_acyclic_graph(G)[source]

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

Parameters

G (NetworkX graph)

Returns

True if G is a DAG, False otherwise

Return type

bool