'Tests for decoding a tree from a PrÃŒfer sequence.'

def test_decoding(self):

    sequence = [3, 3, 3, 4]
    tree = nx.from_prufer_sequence(sequence)
    assert_nodes_equal(list(tree), list(range(6)))
    edges = [(0, 3), (1, 3), (2, 3), (3, 4), (4, 5)]
    assert_edges_equal(list(tree.edges()), edges)
