Description Usage Arguments Value Author(s) See Also Examples

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

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

`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. |

An igraph graph.

Samuel Thiriot

1 2 3 | ```
g <- sample_islands(3, 10, 5/10, 1)
oc <- cluster_optimal(g)
oc
``` |

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.