sample_islands: A graph with subgraphs that are each a random graph.

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

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

Author(s)

Samuel Thiriot (https://www.linkedin.com/in/samthiriot)

See Also

sample_gnp

Examples

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


Search within the igraph package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.