RelabelVertices - Maple Help

Online Help

All Products    Maple    MapleSim


GraphTheory

  

RelabelVertices

  

relabel vertices of graph

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

RelabelVertices(G,V)

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