nonisomorphic_trees#

nonisomorphic_trees(order, create='graph')[source]#

Generates lists of nonisomorphic trees

Parameters:
orderint

order of the desired tree(s)

createone of {“graph”, “matrix”} (default=”graph”)

If "graph" is selected a list of Graph instances will be returned, if matrix is selected a list of adjacency matrices will be returned.

Yields:
list

A list of nonisomorphic trees, in one of two formats depending on the value of the create parameter: - create="graph": yields a list of networkx.Graph instances - create="matrix": yields a list of list-of-lists representing adjacency matrices