stubs.sampling: Generate Random Graph

Description Usage Arguments Value Author(s) See Also Examples

Description

Generate random graph by randomly permuting the stubs of nodes

Usage

1

Arguments

s

Number of samplings.

g

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

Value

A data matrix in which each row is the edge expression of graph.

Author(s)

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

See Also

graph

Examples

1
2
3
4
5
library(igraph)
par(mfrow=c(2,1))
g <- graph.ring(10);plot(g)
Sg=stubs.sampling(s=10, g=g)
sg=graph(Sg[1,],n=V(g),directed=FALSE);plot(sg)

SNscan documentation built on May 2, 2019, 8:26 a.m.