biased-dot-graph: Generate random network with degree distribution

Description Usage Arguments Value Examples

Description

Generate a random directed graph with the given node ordering and degree distribution

Usage

1
biased.graph(nodes, in.degree.distr)

Arguments

nodes

character vector of node names which species the node ordering

in.degree.distr

the node in-degree distribution

Value

an object of class bn with the random graph

Examples

1
2
# a random network of 5 nodes with choosen in-degree distribution
biased.graph(letters[1:5], c(0, 1, 1, 2, 2))

ddgraph documentation built on Nov. 17, 2017, 10:50 a.m.