This documents the development version of NetworkX. Documentation for the current release can be found here.
Returns the number of isolates in the graph.
An isolate is a node with no neighbors (that is, with degree zero). For directed graphs, this means no in-neighbors and no out-neighbors.
- GNetworkX graph
The number of degree zero nodes in the graph