@not_implemented_for('undirected')
def dag_longest_path_length(G):
    path_length = len(nx.dag_longest_path(G)) - 1
    return path_length
Creates a PrimitiveDataType from a JSON dictionary.
dataset/ETHPy150Open networkx/networkx/networkx/algorithms/dag.py/dag_longest_path_length--crossover with--dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/data_types.py/CreatePrimitiveDataType