SymPy | Prufer.prufer_repr() in Python
Prufer.prufer_repr() : prufer_repr() is a sympy Python library function that returns the Prufer sequence for the Prufer object. By removing the highest numbered vertex, then recording the node it was attached to, and finally continuing until only two vertices remain, the sequence can be found. Synta