Learn R Programming

netUtils (version 0.8.3)

split_graph: split graph

Description

Create a random split graph with a perfect core-periphery structure.

Usage

split_graph(n, p, core)

Value

igraph object

Arguments

n

number of nodes

p

probability of peripheral nodes to connect to the core nodes

core

fraction of nodes in the core

Author

David Schoch

Examples

Run this code
# split graph with 20 nodes and a core size of 10
split_graph(n = 20, p = 0.4, 0.5)

Run the code above in your browser using DataLab