Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

nonisomorphic_trees

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

Returns a list of nonisomporphic trees

Parameters:
  • order (int) – order of the desired tree(s)
  • create (graph or matrix (default="Graph)) – If graph is selected a list of trees will be returned, if matrix is selected a list of adjancency matrix will be returned
Returns:

  • G (List of NetworkX Graphs)
  • M (List of Adjacency matrices)

References