def number_of_selfloops(self):
        return len(self.selfloop_edges())
Return the number of selfloop edges.
dataset/ETHPy150Open networkx/networkx/networkx/classes/tests/timingclasses.py/TimingGraph.number_of_selfloops