graph.rmedge: Random Graph with Expected Edges

Description Usage Arguments Value Author(s) See Also Examples

Description

Generate random graph with expected edges.

Usage

1
graph.rmedge(n, g, fix.edge = TRUE)

Arguments

n

Integer value, the number of random graph.

g

An igraph object, a baseline graph for generating random graph.

fix.edge

When fix.edge = TRUE, the number of edges is fixed and equal to the number of edges in the original graph g. When fix.edge = FALSE, the number of edges is randomly generated according to the connection probability of the original graph g.

Value

A data list in which each component is an igraph object.

Author(s)

Taichi Wang <taichi43@stat.sinica.edu.tw>

See Also

erdos.renyi.game

Examples

1
2
3
4
library(igraph)
g = graph.ring(10)
graph.rmedge(n=1,g=g,fix.edge = TRUE)
graph.rmedge(n=1,g=g,fix.edge = FALSE)

taichi43/SNscan documentation built on May 31, 2019, 2:48 a.m.