graphscope.experimental.nx.DiGraph.remove_nodes_from¶
-
DiGraph.
remove_nodes_from
(nodes_for_removing)¶ Remove multiple nodes.
- Parameters
nodes_for_removing (iterable container) – A container of nodes (list, dict, set, etc.). If a node in the container is not in the graph it is silently ignored.
See also
Examples
>>> G = nx.path_graph(3) # or DiGraph >>> e = list(G.nodes) >>> e [0, 1, 2] >>> G.remove_nodes_from(e) >>> list(G.nodes) []