I am using the following code to generate the isomorphism class of trees of order $n$.
sage: from sage.graphs.trees import TreeIterator
sage: def check_trees(n):
....: trees = []
....: for t in TreeIterator(n):
....: if not t.is_tree():
....: return False
....: if t.num_verts() != n:
....: return False
....: if t.num_edges() != n - 1:
....: return False
....: for tree in trees:
....: if tree.is_isomorphic(t):
....: return False
....: trees.append(t)
....: return True
Then when I print the trees in TreeIterator using loops it is giving the trees in a particular order. Can anyone explain to me what is this predefined order on trees of order $n$ on sage?