

def test_simple_cycles_small(self):
    G = nx.DiGraph()
    G.add_cycle([1, 2, 3])
    c = sorted(nx.simple_cycles(G))
    assert_equal(len(c), 1)
    assert_true(self.is_cyclic_permutation(c[0], [1, 2, 3]))
    G.add_cycle([10, 20, 30])
    cc = sorted(nx.simple_cycles(G))
    ca = [[1, 2, 3], [10, 20, 30]]
    for c in G:
        assert_true(any((self.is_cyclic_permutation(c, rc) for rc in ca)))

dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/algorithms/tests/test_cycles.py TestCycles.test_simple_cycles_small/VarMisuse@122/137 `cc`->`G`