Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

# remove_edge¶

Graph.remove_edge(u, v)

Remove the edge between u and v.

Parameters : u,v: nodes Remove the edge between nodes u and v. NetworkXError If there is not an edge between u and v.

remove_edges_from
remove a collection of edges

Examples

>>> G = nx.Graph()   # or DiGraph, etc