Learn R Programming

SELF (version 0.1.1)

randomGraph: Generate a random graph

Description

Generate a random graph based on the given dimension size and average indegree

Usage

randomGraph(dim, indegree, maxite = 10000)

Arguments

dim

The dimension of the random graph

indegree

The average indegree of random graph for each nodes

maxite

The maximum iterations to find the random graph

Value

Return a random graph

Examples

Run this code
# NOT RUN {
randomGraph(dim=10,indegree=1)
# }

Run the code above in your browser using DataLab