erdos_matrix: Adjacency matrix version of undirected Erdos-Renyi random...

Description Usage Arguments Details Value Examples

Description

erdos_matrix creates an adjacency matrix representation of an undirected Erdos-Renyi random graph.

Usage

1
erdos_matrix(N, avk)

Arguments

N

Number of vertices / nodes in the network.

avk

desired average degree of the network

Details

This functon generates an undirected random graph of size N, each node having average degree avk. Self and repeated edges are not permitted so if avk > (N - 1) a fully connected network will always be returned.

Value

adjacency matrix representation of the resultant network

Examples

1
gr <- erdos_matrix(1000,10)

tjtnew/graphr documentation built on May 19, 2019, 9:38 p.m.