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
#!/usr/bin/env python | |
"""Implementation of the Wright, Richmond, Odlyzko and McKay (WROM) | |
algorithm for the enumeration of all non-isomorphic free trees of a | |
given order. Rooted trees are represented by level sequences, i.e., | |
lists in which the i-th element specifies the distance of vertex i to | |
the root.""" | |
import sys |