def __iter__(self):
        return iter(self.node)
Iterate over the nodes. Use the expression 'for n in G'.
dataset/ETHPy150Open networkx/networkx/networkx/classes/tests/timingclasses.py/TimingGraph.__iter__