randomGraph: 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
Examples
Run this code# NOT RUN {
wG <- randomGraph(n=5)
# }
Run the code above in your browser using DataLab