Skip to content

Commit

Permalink
DOC: Clarifying NetworkXPointlessConcept exception (#7434)
Browse files Browse the repository at this point in the history
* added a note

* Update networkx/exception.py

Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>

---------

Co-authored-by: Jarrod Millman <jarrod.millman@gmail.com>
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
  • Loading branch information
3 people committed May 3, 2024
1 parent 655f465 commit c78b8b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions networkx/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ class NetworkXPointlessConcept(NetworkXException):
The null graph is sometimes considered a pointless concept [1]_,
thus the name of the exception.
Notes
-----
Null graphs and empty graphs are often used interchangeably but they
are well defined in NetworkX. An ``empty_graph`` is a graph with ``n`` nodes
and 0 edges, and a ``null_graph`` is a graph with 0 nodes and 0 edges.
References
----------
.. [1] Harary, F. and Read, R. "Is the Null Graph a Pointless
Expand Down

0 comments on commit c78b8b4

Please sign in to comment.