igraph (version 0.6.5-1)

interconnected.islands: A graph with subgraphs that are each a random graph.

Description

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

Usage

interconnected.islands.game (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.

concept

Random graph model

See Also

erdos.renyi.game

Examples

Run this code
g <- interconnected.islands.game(3, 10, 5/10, 1)
oc <- optimal.community(g)
oc

Run the code above in your browser using DataCamp Workspace