Create a number of Erdos-Renyi random graphs with identical parameters, and connect them with the specified number of edges.
sample_islands(islands.n, islands.size, islands.pin, n.inter)
An igraph graph.
The number of islands in the graph.
The size of islands in the graph.
The probability to create each possible edge into each island.
The number of edges to create between two islands.
g <- sample_islands(3, 10, 5/10, 1)
oc <- cluster_optimal(g)
oc
Samuel Thiriot
sample_gnp