

def remove_edges_from(self, ebunch):
    'Remove all edges specified in ebunch.\n\n        Parameters\n        ----------\n        ebunch: list or container of edge tuples\n            Each edge given in the list or container will be removed\n            from the graph. The edges can be:\n\n                - 2-tuples (u,v) All edges between u and v are removed.\n                - 3-tuples (u,v,key) The edge identified by key is removed.\n                - 4-tuples (u,v,key,data) where data is ignored.\n\n        See Also\n        --------\n        remove_edge : remove a single edge\n\n        Notes\n        -----\n        Will fail silently if an edge in ebunch is not in the graph.\n\n        Examples\n        --------\n        >>> G = nx.MultiGraph() # or MultiDiGraph\n        >>> G.add_path([0,1,2,3])\n        >>> ebunch=[(1,2),(2,3)]\n        >>> G.remove_edges_from(ebunch)\n\n        Removing multiple copies of edges\n\n        >>> G = nx.MultiGraph()\n        >>> G.add_edges_from([(1,2),(1,2),(1,2)])\n        >>> G.remove_edges_from([(1,2),(1,2)])\n        >>> G.edges()\n        [(1, 2)]\n        >>> G.remove_edges_from([(1,2),(1,2)]) # silently ignore extra copy\n        >>> G.edges() # now empty graph\n        []\n        '
    for e in ebunch:
        try:
            ebunch.remove_edge(*e[:3])
        except NetworkXError:
            pass

dataset/ETHPy150Open networkx/networkx/networkx/classes/tests/timingclasses.py TimingMultiGraph.remove_edges_from/VarMisuse@25/514 `self`->`ebunch`