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 Styling, Labeling, and Layout > VertexCoordinates >
Mathematica > Visualization and Graphics > Graphs & Networks > Graph Styling, Labeling, and Layout > VertexCoordinates >

VertexCoordinates

VertexCoordinates
is an option to Graph and related functions that specifies the coordinates to use to place the center of vertices.
Automaticautomatically compute vertex coordinates
{pt1,pt2,...}place vertex at etc.
By default any vertex coordinates are computed automatically:
Specify all vertex coordinates:
In this case putting them on a parabola:
By default any vertex coordinates are computed automatically:
In[1]:=
Click for copyable input
Out[1]=
 
Specify all vertex coordinates:
In[1]:=
Click for copyable input
Out[1]=
In this case putting them on a parabola:
In[2]:=
Click for copyable input
Out[2]=
VertexCoordinates can be used for general graphs:
Matrix graphs:
Special graphs:
VertexCoordinates has higher priority than GraphLayout:
Use an automatic layout of a molecule:
Also specify the vertex coordinates:
Automatically draw a graph from its adjacency matrix:
Use specific embedding by setting vertex coordinates:
Generate a circle layout:
Grid layout:
Discrete spiral layout:
Generate a path graph with a specified layout:
Highlight the vertices on the inner circle:
All vertex coordinates in a list follow the order given by VertexList:
New in 8
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF