networkx.MultiGraph.number_of_nodes
networkx.MultiGraph.size
Return the number of nodes. Use “len(G)”.
Examples
>>> G=nx.path_graph(4) >>> print len(G) 4