Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Graphs & Networks > Graph Operations and Modifications > VertexReplace >
Mathematica > Visualization and Graphics > Graphs & Networks > Graph Operations and Modifications > VertexReplace >
Mathematica > Mathematics and Algorithms > Graphs & Networks > Constructing Graphs > Graph Operations and Modifications > VertexReplace >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF