

def test_topological_sort5(self):
    G = nx.DiGraph()
    G.add_edge(0, 1)
    assert_equal(nx.topological_sort_recursive(G), [0, 1])
    assert_equal(nx.topological_sort(G), [0, 1])

dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/algorithms/tests/test_dag.py TestDAG.test_topological_sort5/original