randomGraph {regrap} | R Documentation |
Generate a Random Graph
Description
Generate a random graph from uniform distribution
Usage
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
wG <- randomGraph(n=5)
[Package regrap version 1.0.1 Index]