'Remove all edges specified in ebunch.
Parameters
ebunch: list or container of edge tuples
Each edge given in the list or container will be removed
from the graph. The edges can be:
- 2-tuples (u, v) edge between u and v.
- 3-tuples (u, v, k) where k is ignored.
See Also
remove_edge : remove a single edge
Notes
Will fail silently if an edge in ebunch is not in the graph.
Examples
>>> G = nx.path_graph(4)  # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> ebunch = [(1, 2), (2, 3)]
>>> G.remove_edges_from(ebunch)'

def remove_edges_from(self, ebunch):

    for e in ebunch:
        (u, v) = e[:2]
        if ((u in self._succ) and (v in self._succ[u])):
            del self._succ[u][v]
            del self._pred[v][u]
