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.
with⁡GraphTheory:
G≔Graph⁡1,2,1,3,1,4:
Vertices⁡G
1,2,3,4
Edges⁡G
1,2,1,3,1,4
H≔RelabelVertices⁡G,a,b,c,d:
Vertices⁡H
a,b,c,d
Edges⁡H
a,b,a,c,a,d
See Also
Vertices
Download Help Document