An encoding which provides a bijection between the labeled trees on nodes and strings of integers chosen from an alphabet of the numbers 1 to . A labeled tree can be converted to a Prüfer code using LabeledTreeToCode[g] in the Wolfram Language package Combinatorica` , and a code can be converted to a labeled tree using CodeToLabeledTree[code]. Prüfer's bijection is based on the fact that every tre