GraphTheory - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Discrete Mathematics : Graph Theory : GraphTheory Package : GraphTheory/RelabelVertices

GraphTheory

  

RelabelVertices

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

RelabelVertices(G,S)

Parameters

G

-

a graph

V

-

a list of vertex labels

Description

• 

RelabelVertices('G','V') returns a new graph with vertex labels changed to be those in V.  The graph G is not modified.

Examples

withGraphTheory:

GGraph1,2,1,3,1,4:

VerticesG

1,2,3,4

(1)

EdgesG

1,2,1,3,1,4

(2)

HRelabelVerticesG,a,b,c,d:

VerticesH

a,b,c,d

(3)

EdgesH

a,b,a,c,a,d

(4)

See Also

Vertices