def test_alternating_path(self):
        G = nx.DiGraph(chain.from_iterable([(i, i - 1), (i, i + 1)]
                                           for i in range(0, 100, 2)))
        ok_(not nx.is_semiconnected(G))
dataset/ETHPy150Open networkx/networkx/networkx/algorithms/components/tests/test_semiconnected.py/TestIsSemiconnected.test_alternating_path/original