NetworkX

Previous topic

networkx.LabeledGraph.remove_edge

Next topic

networkx.LabeledGraph.add_star

Quick search

networkx.LabeledGraph.remove_edges_from

LabeledGraph.remove_edges_from(ebunch)

Remove all edges specified in ebunch.

Parameters:

ebunch: list or container of edge tuples :

A container of edge 2-tuples (u,v) or edge 3-tuples(u,v,d) though d is ignored unless we are a multigraph.

See also

remove_edge

Notes

Will fail silently if the edge (u,v) is not in the graph.

Examples

>>> G=nx.path_graph(4)
>>> ebunch=[(1,2),(2,3)]
>>> G.remove_edges_from(ebunch)