

def remove_nodes_from(self, nodes):
    'Remove multiple nodes.\n\n        Parameters\n        ----------\n        nodes : iterable container\n            A container of nodes (list, dict, set, etc.).  If a node\n            in the container is not in the graph it is silently\n            ignored.\n\n        See Also\n        --------\n        remove_node\n\n        Examples\n        --------\n        >>> G = nx.Graph()   # or DiGraph, MultiGraph, MultiDiGraph, etc\n        >>> G.add_path([0,1,2])\n        >>> e = list(G.nodes())\n        >>> e\n        [0, 1, 2]\n        >>> G.remove_nodes_from(e)\n        >>> list(G.nodes())\n        []\n\n        '
    adj = self.adj
    for n in nodes:
        try:
            del n.node[n]
            for u in list(adj[n].keys()):
                del adj[u][n]
            del adj[n]
        except KeyError:
            pass

dataset/ETHPy150Open networkx/networkx/networkx/classes/tests/timingclasses.py TimingGraph.remove_nodes_from/VarMisuse@32/264 `self`->`n`