# grg.game

From igraph v0.4.4
by Gabor Csardi

##### Geometric random graphs

Generate a random graph based on the distance of random point on a unit square

- Keywords
- graphs

##### Usage

`grg.game(nodes, radius, torus=FALSE)`

##### Arguments

- nodes
- The number of vertices in the graph.
- radius
- The radius within which the vertices will be connected by an edge.
- torus
- Logical constant, whether to use a torus instead of a square.

##### Details

First a number of points are dropped on a unit square, these points
correspond to the vertices of the graph to create. Two points will be
connected with an undirected edge if they are closer to each other in
Euclidean norm than a given radius. If the `torus`

argument is
`TRUE`

then a unit area torus is used instead of a square.

##### Value

- A graph object.

##### See Also

##### Examples

```
g <- grg.game(1000, 0.05, torus=FALSE)
g2 <- grg.game(1000, 0.05, torus=TRUE)
```

*Documentation reproduced from package igraph, version 0.4.4, License: GPL version 2 or later (June, 1991)*

### Community examples

Looks like there are no examples yet.