Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sample_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

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.

Examples

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

Author(s)

Samuel Thiriot

See Also


igraph

Network Analysis and Visualization

v1.2.10
GPL (>= 2)
Authors
See AUTHORS file.
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.