'Tests for encoding a tree as a PrÃŒfer sequence using the
iterative strategy.'

def test_encoding(self):

    tree = nx.Graph([(0, 3), (1, 3), (2, 3), (3, 4), (4, 5)])
    sequence = nx.to_prufer_sequence(tree)
    assert_equal(sequence, [3, 3, 3, 4])
