异常#
NetworkX 的基本异常和错误。
- class NetworkXPointlessConcept[source]#
当向无法使用空图(null graph)的算法提供了空图时引发。
空图有时被认为是一个无意义的概念 [1],因此得名此异常。
注意
空图(Null graph)和空图(Empty graph)经常被交替使用,但在 NetworkX 中它们有明确的定义。一个
empty_graph
是一个包含n
个节点和 0 条边的图,而一个null_graph
是一个包含 0 个节点和 0 条边的图。参考文献
[1]Harary, F. and Read, R. “Is the Null Graph a Pointless Concept?” In Graphs and Combinatorics Conference, George Washington University. New York: Springer-Verlag, 1973.