GraphTheory[DeleteEdge]
|
Calling Sequence
|
|
DeleteEdge(G, E, ip)
|
|
Parameters
|
|
G
|
-
|
undirected graph
|
E
|
-
|
edge, trail, or set of edges
|
ip
|
-
|
equation of the form inplace=true or false (optional)
|
|
|
|
|
Description
|
|
•
|
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. instead of ) 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.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
|
|
Download Help Document
Was this information helpful?