networkx.MultiGraph.selfloop_edges
networkx.MultiGraph.number_of_nodes
Return the number of nodes.
See also
Graph.order, Graph.__len__