This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Transformation of trees into Prufer sequence and back. | |
The Prufer sequence of a labeled tree is a unique seqience associated | |
with that tree on length n-2 where there are n vertices in the tree. | |
More information: https://en.wikipedia.org/wiki/Prüfer_sequence | |
Copyright 2015 Karol M. Langner, Google Inc. | |
Licensed under the Apache License, Version 2.0 | |
http://www.apache.org/licenses/LICENSE-2.0 | |
""" |
OlderNewer