# dag_longest_path¶

dag_longest_path(G)[source]

Returns the longest path in a DAG

Parameters: G (NetworkX DiGraph) – Graph path – Longest path list NetworkXNotImplemented – If G is not directed