Close
Close window
Subdivide - 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

Subdivide

construct graph by subdividing edges

Calling Sequence

Subdivide(G, E, r)

Parameters

G

-

graph

E

-

(optional) edge or arc or set (or list) of edges or arcs of the graph

r

-

(optional) positive integer

Description

The Subdivide command subdivides the specified edges or arcs of a graph or digraph, by putting r new vertices on each specified edge or arc.

If r is not specified, a default value of 1 is used.

Examples

>

withGraphTheory:

>

GCompleteGraph2,3

GGraph 1: an undirected graph with 5 vertices and 6 edges

(1)
>

EdgesG

1,3,1,4,1,5,2,3,2,4,2,5

(2)
>

SGSubdivideG,1,5,2,4

SGGraph 2: an undirected graph with 7 vertices and 8 edges

(3)
>

EdgesSG

1,3,1,4,1,6,2,3,2,5,2,7,4,7,5,6

(4)
>

DGDigrapha,b,c,a,b,a,c

DGGraph 3: a directed graph with 3 vertices and 2 arcs

(5)
>

EdgesDG

a,b,a,c

(6)
>

SDGSubdivideDG,a,b,2

SDGGraph 4: a directed graph with 5 vertices and 4 arcs

(7)
>

EdgesSDG

1,2,2,b,a,1,a,c

(8)

See Also


Download Help Document

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