delete edge from graph
DeleteEdge(G, E, ip)
edge, trail, or set of edges
(optional) equation of the form inplace=true or false
The DeleteEdge command deletes one or more edges from an undirected graph. By default, the original graph is changed to a graph missing the specified set of edges. By setting inplace=false the original graph remains unchanged and a new graph missing the specified set of edges is created.
If the graph is a weighted graph, then if a weight is also provided (i.e. edge,weight instead of edge) that weight is subtracted from the edge weight, which will not necessarily remove the edge from the graph. If no weight is provided, the edge is removed regardless of the weight.
G ≔ CycleGraph⁡4
G≔Graph 1: an undirected graph with 4 vertices and 4 edge(s)
H ≔ DeleteEdge⁡G,1,2,inplace=false
H≔Graph 2: an undirected graph with 4 vertices and 3 edge(s)
Graph 1: an undirected graph with 4 vertices and 2 edge(s)
Download Help Document
What kind of issue would you like to report? (Optional)