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


  • 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


open allclose all

Basic Examples  (2)

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

Specify vertex shapes for individual vertices:

Scope  (8)

VertexShape can be used for general graphs:

Matrix graphs:

Special graphs:

Use Annotation to specify vertex shape:

VertexShape can be combined with VertexSize:

VertexShape works with patterns:

VertexShape is not affected by VertexStyle:

VertexShapeFunction has higher priority than VertexShape:

Applications  (2)

Create a food chain where an edge indicates what animals and insects eat:

The relation between shapes where the edge indicates a more general shape:

Wolfram Research (2010), VertexShape, Wolfram Language function, (updated 2015).


Wolfram Research (2010), VertexShape, Wolfram Language function, (updated 2015).


@misc{reference.wolfram_2020_vertexshape, author="Wolfram Research", title="{VertexShape}", year="2015", howpublished="\url{}", note=[Accessed: 27-February-2021 ]}


@online{reference.wolfram_2020_vertexshape, organization={Wolfram Research}, title={VertexShape}, year={2015}, url={}, note=[Accessed: 27-February-2021 ]}


Wolfram Language. 2010. "VertexShape." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015.


Wolfram Language. (2010). VertexShape. Wolfram Language & System Documentation Center. Retrieved from