GraphTheory
DeleteArc
delete arc from digraph
Calling Sequence
Parameters
Description
Examples
DeleteArc(G, E, ip)
G
-
directed graph
E
arc, trail, or set of arcs
ip
(optional)equation of the form inplace=true or false
The DeleteArc command deletes one or more arcs from a directed graph. By default, the original digraph is changed to a digraph missing the specified set of arcs. By setting inplace=false the original digraph remains unchanged and a new digraph missing the specified set of arcs is created.
If the digraph is a weighted digraph, then if a weight is also provided (i.e. instead of ) that weight is subtracted from the arc weight, which will not necessarily remove the arc from the digraph. If no weight is provided, the arc is removed regardless of the weight.
See Also
AddArc
DeleteEdge
Digraph
Edges
HasArc
Trail
Download Help Document