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