createRandomNetwork: Create a random network

Description Usage Arguments Value Author(s)

View source: R/networks.R

Description

Creates a random network with the specified number of nodes and links.

Usage

1
createRandomNetwork(nv, ne, weights = rep(1, ne), bDirected = FALSE)

Arguments

nv

Number of nodes (vertices).

ne

Number of edges (links).

weights

Weight of links (vector of length ne).

bDirected

Whether to make the matrix symmetrical (i.e. biderectional links).

Value

Adjacency matrix. Non-zero element adjMat[i, j] indicates the weight of the link between nodes i and j.

Author(s)

Mikhail Churakov


mc30/disnap documentation built on Jan. 18, 2020, 3:44 a.m.