def test_dumbbell(self):
        G = nx.cycle_graph(100, create_using=nx.DiGraph())
        G.add_edges_from((i + 100, (i + 1) % 100 + 100) for i in range(100))
        ok_(not nx.is_semiconnected(G))  # G is disconnected.
        G.add_edge(100, 99)
        ok_(nx.is_semiconnected(G))
dataset/ETHPy150Open networkx/networkx/networkx/algorithms/components/tests/test_semiconnected.py/TestIsSemiconnected.test_dumbbell/original