def __len__(self):
        return len(self.node)
Return the number of nodes. Use the expression 'len(G)'.
dataset/ETHPy150Open networkx/networkx/networkx/classes/tests/timingclasses.py/TimingGraph.__len__