Skip to content

Commit

Permalink
NetworkX random_tree -> random_labelled_tree
Browse files Browse the repository at this point in the history
random_tree is deprecated in NetworkX
  • Loading branch information
rocky committed Nov 25, 2024
1 parent ad664d2 commit f482ed8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pymathics/graph/parametric.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ class RandomTree(_NetworkXBuiltin):
"""
<url>:NetworkX:
https://networkx.org/documentation/networkx-2.8.8/reference\
/generated/networkx.generators.trees.random_tree.html</url>, <url>
/generated/networkx.generators.trees.random_labeled_tree.html</url>, <url>
:WMA:
https://reference.wolfram.com/language/ref/RandomTree.html</url>
Expand Down Expand Up @@ -610,7 +610,9 @@ def eval(
return

args = (py_n,)
g = graph_helper(nx.random_tree, options, False, "tree", evaluation, 0, *args)
g = graph_helper(
nx.random_labeled_tree, options, False, "tree", evaluation, 0, *args
)
if not g:
return None
g.G.n = n
Expand Down

0 comments on commit f482ed8

Please sign in to comment.