# Vertex shapes

From igraph v0.5.3
by Gabor Csardi

##### Various vertex shapes when plotting igraph graphs

Starting from version 0.5.1 igraph supports different vertex shapes when plotting graphs.

- Keywords
- graphs

##### Details

Note that the current vertex shape implementation is experimental and
it might change in the future. Currently vertex shapes are implemented
only for `plot.igraph`

.
In igraph a vertex shape is defined by a function that 1) provides
information about the size of the shape for clipping the edges and 2)
plots the shape if requested. These functions are called

Shape functions have a `mode`

`clip`

`plot`

In clipping mode a shape function has the following arguments:

- coords

`el`

argument.}
`coords`

.}
`clip`

`vertex`

`edge`

`plot`

`both`

`from`

`to`

`from`

`el`

edge list, `to`

`both`

##### concept

- Vertex shapes
- Visualization

##### sQuote

- clipping
- plotting

##### code

`coords`

##### itemize

- coords

##### item

- v
- mode
- params

##### dQuote

`plot`

##### See Also

##### Examples

```
g <- graph.ring(10, dir=TRUE, mut=TRUE)
plot(g, vertex.shape="rectangle", layout=layout.circle)
```

*Documentation reproduced from package igraph, version 0.5.3, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.