sample_islands_signed: A graph with random subgraphs connected by negative edges

View source: R/random_graphs.R

sample_islands_signedR Documentation

A graph with random subgraphs connected by negative edges

Description

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

Usage

sample_islands_signed(islands.n, islands.size, islands.pin, n.inter)

Arguments

islands.n

The number of islands in the graph.

islands.size

The size of the islands in the graph.

islands.pin

The probability of intra-island edges.

n.inter

number of negative edges between two islands.

Value

a signed igraph graph

Author(s)

David Schoch

Examples

library(igraph)
sample_islands_signed(3, 10, 0.5, 1)

signnet documentation built on Sept. 9, 2023, 1:06 a.m.