# layout.star

From igraph v0.6.5-2
by Gabor Csardi

##### Generate coordinates to place the vertices of a graph in a star-shape

A simple layout generator, that places one vertex in the center of a circle and the rest of the vertices equidistantly on the perimeter.

- Keywords
- graphs

##### Usage

`layout.star(graph, center = V(graph)[1], order = NULL)`

##### Arguments

- graph
- The graph to layout.
- center
- The id of the vertex to put in the center. By default it is the first vertex.
- order
- Numeric vector, the order of the vertices along the perimeter. The default ordering is given by the vertex ids.

##### Details

It is possible to choose the vertex that will be in the center, and the order of the vertices can be also given.

##### Value

- A matrix with two columns and as many rows as the number of vertices in the input graph.

##### concept

Graph layout

##### See Also

`layout`

and `layout.drl`

for other
layout algorithms, `plot.igraph`

and `tkplot`

on how to plot graphs and `graph.star`

on how to create
ring graphs.

##### Examples

```
g <- graph.star(10)
layout.star(g)
```

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

### Community examples

Looks like there are no examples yet.