Skip to content

Commit

Permalink
Fix error message for nx.mycielski_graph(0) (#7056)
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknw authored and jarrodmillman committed Oct 27, 2023
1 parent f7499b1 commit e37b0aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networkx/generators/mycielski.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def mycielski_graph(n):
"""

if n < 1:
raise nx.NetworkXError("must satisfy n >= 0")
raise nx.NetworkXError("must satisfy n >= 1")

if n == 1:
return nx.empty_graph(1)
Expand Down

0 comments on commit e37b0aa

Please sign in to comment.