networkx.topological_sort_recursive
networkx.eccentricity
Return True if the graph G is a directed acyclic graph (DAG).
Otherwise return False.