Skip to content

Commit

Permalink
Update docstring of nonisomorphic_trees.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbar committed Jan 29, 2024
1 parent d6569ad commit ba7e99b
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions networkx/generators/nonisomorphic_trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,20 @@ def nonisomorphic_trees(order, create="graph"):
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 adjacency matrix will
be returned
Returns
-------
G : List of NetworkX Graphs
M : List of Adjacency matrices
References
----------
order of the desired tree(s)
create : one 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
"""

if order < 2:
Expand Down

0 comments on commit ba7e99b

Please sign in to comment.