randomGraph: Generate a Random Graph

Description Usage Arguments Value Author(s) Examples

Description

Generate a random graph from uniform distribution

Usage

1
randomGraph(n, seed = as.numeric(Sys.time()), wlim = c(0, 1), Glim = c(0, 1))

Arguments

n

an integer: number of vertices

seed

an integer: a seed for random number generator

wlim

a vector of two numbers: range of vertex weights

Glim

a vector of two numbers: range of transition weights

Value

A list of one vector for vertex weights and one matrix for transition weights

Author(s)

Jiangtao Gou

Fengqing Zhang

Examples

1
wG <- randomGraph(n=5)

regrap documentation built on July 8, 2020, 6:24 p.m.

Related to randomGraph in regrap...