Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >

VertexRenderingFunction

VertexRenderingFunction
is an option for GraphPlot and related functions which gives a function to generate the graphics primitives to use in rendering each vertex.
  • VertexRenderingFunction->f specifies that each vertex should be rendered with the graphics primitives given by f[rk, vk], where rk is the coordinate position where the vertex is being placed, and vk is its name.
  • The graphics primitives obtained by applying VertexRenderingFunction are in effect directly spliced into the graphic generated by a function like GraphPlot. Inset can be used to insert an arbitrary expression.
Draw each vertex using its labels in a disk:
Do not draw a vertex at all:
Use graphics:
Draw vertices as spheres:
Draw each vertex using its labels in a disk:
In[1]:=
Click for copyable input
Out[1]=
 
Do not draw a vertex at all:
In[1]:=
Click for copyable input
Out[1]=
 
Use graphics:
In[1]:=
Click for copyable input
Out[1]=
 
Draw vertices as spheres:
In[1]:=
Click for copyable input
Out[1]=
For large graphs, it is often better not to display vertices:
Draw vertices as graphics:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team