

def multi_levels_test2(self):
    deps = DepsGraph()
    deps.add_node(1)
    deps.add_node(5)
    deps.add_node(2)
    deps.add_node(32)
    deps.add_node(31)
    deps.add_edge(1, 2)
    deps.add_edge(1, 5)
    deps.add_edge(2, 31)
    deps.add_edge(2, 32)
    self.assertEqual([[5, 31, 32], [2], [1]], deps.by_levels())

dataset/ETHPy150Open conan-io/conan/conans/test/deps_graph_test.py DepsGraphTest.multi_levels_test2/original