This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

VertexReplace

VertexReplace
replaces each vertex in the graph g by .
Replace individual vertices in the graph:
Replace all vertices in the graph:
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]=
VertexReplace works with undirected graphs:
Directed graphs:
Large graphs:
Create a graph that is isomorphic to the original graph:
Find an isomorphism that maps two graphs:
Highlight and label two graphs according to the mapping:
The graph created by replacing vertices has the same number of vertices as the original graph:
The graph created by replacing vertices has the same number of edges as the original graph:
The graph created by replacing vertices is isomorphic to the original graph:
IndexGraph can be implemented using VertexReplace:
The graph created by replacing vertices has the same adjacency matrix as the original graph:
New in 8