networkx.algorithms.dag.
dag_longest_path_length
Returns the longest path length in a DAG
NetworkXNotImplemented
See also
dag_longest_path()