remove_edges_from(self, ebunch)
Will fail silently if an edge in ebunch is not in the graph.
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.
Remove all edges specified in ebunch.
remove_edge
remove a single edge
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etcSee :
... ebunch = [(1, 2), (2, 3)]
... G.remove_edges_from(ebunch)
The following pages refer to to this document either explicitly or contain code examples using this.
networkx.classes.digraph.DiGraph.remove_edges_from
networkx.generators.random_clustered.random_clustered_graph
networkx.generators.degree_seq.configuration_model
networkx.classes.graph.Graph.remove_edge
networkx.classes.graph.Graph.remove_edges_from
networkx.classes.multigraph.MultiGraph.remove_edges_from
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them