# sample_islands

From igraph v1.0.1
by Gabor Csardi

##### A graph with subgraphs that are each a random graph.

Create a number of Erdos-Renyi random graphs with identical parameters, and connect them with the specified number of edges.

- Keywords
- graphs

##### Usage

`sample_islands(islands.n, islands.size, islands.pin, n.inter)`

##### Arguments

- islands.n
The number of islands in the graph.

- islands.size
The size of islands in the graph.

- islands.pin
The probability to create each possible edge into each island.

- n.inter
The number of edges to create between two islands.

##### Value

An igraph graph.

##### See Also

##### Examples

```
# NOT RUN {
g <- sample_islands(3, 10, 5/10, 1)
oc <- cluster_optimal(g)
oc
# }
```

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

### Community examples

Looks like there are no examples yet.