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