GraphTheory
RelabelVertices
relabel vertices of graph
Calling Sequence
Parameters
Description
Examples
RelabelVertices(G,V)
G
-
a graph
V
a list of vertex labels
RelabelVertices(G,V) returns a new graph with vertex labels changed to be those in V. The graph G is not modified.
withGraphTheory:
G≔Graph1,2,1,3,1,4:
VerticesG
1,2,3,4
EdgesG
1,2,1,3,1,4
H≔RelabelVerticesG,a,b,c,d:
VerticesH
a,b,c,d
EdgesH
a,b,a,c,a,d
See Also
Vertices
Download Help Document