NetworkX

Previous topic

networkx.MultiGraph.number_of_edges

Next topic

networkx.MultiGraph.degree

Quick search

networkx.MultiGraph.number_of_selfloops

MultiGraph.number_of_selfloops()
Return the number of selfloop edges counting multiple edges.