Close
Close window
DeleteArc - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

GraphTheory

DeleteArc

delete arc from digraph

Calling Sequence

DeleteArc(G, E, ip)

Parameters

G

-

directed graph

E

-

arc, trail, or set of arcs

ip

-

(optional)equation of the form inplace=true or false

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. arc,weight instead of arc) 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

>

withGraphTheory:

>

GDigrapha,b,c,d,a,b,b,c,c,d,d,a

GGraph 1: a directed graph with 4 vertices and 4 arcs

(1)
>

HDeleteArcG,d,a,inplace=false

HGraph 2: a directed graph with 4 vertices and 3 arcs

(2)
>

EdgesG

a,b,b,c,c,d,d,a

(3)
>

EdgesH

a,b,b,c,c,d

(4)
>

DeleteArcG,a,b,c,d

Graph 1: a directed graph with 4 vertices and 2 arcs

(5)
>

EdgesG

b,c,d,a

(6)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /