

def in_edges_iter(self, nbunch=None, data=False):
    'Return an iterator over the incoming edges.\n\n        Parameters\n        ----------\n        nbunch : iterable container, optional (default= all nodes)\n            A container of nodes.  The container will be iterated\n            through once.\n        data : bool, optional (default=False)\n            If True, return edge attribute dict in 3-tuple (u,v,data).\n\n        Returns\n        -------\n        in_edge_iter : iterator\n            An iterator of (u,v) or (u,v,d) tuples of incoming edges.\n\n        See Also\n        --------\n        edges_iter : return an iterator of edges\n        '
    if (nbunch is None):
        nodes_nbrs = self.pred.items()
    else:
        nodes_nbrs = ((n, self.pred[n]) for n in self.nbunch_iter(nbunch))
    if data:
        for (n, nbrs) in nodes_nbrs:
            for (nbr, data) in nbunch.items():
                (yield (nbr, n, data))
    else:
        for (n, nbrs) in nodes_nbrs:
            for nbr in nbrs:
                (yield (nbr, n))

dataset/ETHPy150Open networkx/networkx/networkx/classes/tests/timingclasses.py TimingDiGraph.in_edges_iter/VarMisuse@92/324 `nbrs`->`nbunch`