'Return the number of nodes. Use the expression \'len(G)\'.
Returns
nnodes : int
The number of nodes in the graph.
Examples
>>> G = nx.path_graph(4)  # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> len(G)
4'

def __len__(self):

    return len(self._node)
