'Tests for node contraction without preserving self-loops.'

def test_without_self_loops(self):

    G = nx.cycle_graph(4)
    actual = nx.contracted_nodes(G, 0, 1, self_loops=False)
    expected = nx.complete_graph(3)
    assert_true(nx.is_isomorphic(actual, expected))
