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