Description Usage Arguments Details Value Author(s) Examples

Generate a network with a grid-like arrangement of edges.

1 | ```
CreateGrid(n=100)
``` |

`n` |
Integer value, the number of vertices to be included. |

This is a simple algorithm that creates a grid-like network. Vertices are arranged in the largest square lattice possible. Vertices not included within this square are added as an additional row. Vertices are connected by edges to their closest neighbours.

`igraph`

object.

Alex J. Cornish a.cornish12@imperial.ac.uk

1 2 3 | ```
# generate and plot a grid-like network containing 100 vertices.
g <- CreateGrid(n = 100)
plot(g, layout=layout.fruchterman.reingold)
``` |

SANTA documentation built on May 31, 2017, 12:13 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.