def number_of_selfloops(self):
        return len(self.selfloop_edges())
Return the number of selfloop edges.
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/classes/graph.py/Graph.number_of_selfloops