VertexReplace

VertexReplace[g,{v1w1,v2w2,}]

replaces each vertex vi in the graph g by wi.

VertexReplace[{vw,},]

uses rules vw to specify the graph g.

Details

Examples

open allclose all

Basic Examples  (2)

Replace individual vertices in the graph:

In[1]:=
Click for copyable input
Out[1]=

Replace all vertices in the graph:

In[1]:=
Click for copyable input
Out[1]=

Scope  (6)

Applications  (1)

Properties & Relations  (5)

See Also

FindGraphIsomorphism  IndexGraph  VertexList

Introduced in 2010
(8.0)
| Updated in 2015
(10.3)