VertexShape

VertexShape
is an option and property for Graph and related functions that specifies the graphics used for vertices.

DetailsDetails

  • VertexShape can be any Graphics, Graphics3D, or Image object.
  • The rendered form of each vertex is obtained by rescaling the given object.
  • The following settings for VertexShape can be used:
  • Automaticuse preset default vertex shape
    Inheriteduse the vertex name as a shape
    guse the graphic g for all vertices
    {v1->g1,v2->g2,}use gi for vertex vi

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Draw vertex shapes using any Graphics, Image, or Graphics3D:

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

Specify vertex shapes for individual vertices:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2010
(8.0)
Translate this page: