snowball.sampling: Snowball sampling

Description Usage Arguments Value Examples

View source: R/snowball.R

Description

Sampling from one graph to its induced subgraph depending on network structure.

Usage

1

Arguments

G

an igraph object.

samn

is a size of snowball sample that will be samples from G.

Value

subG

an induced subgraph of G sampled using snowball sampling.

ind

a set of index of samples.

Examples

1
2
3
4
library(netdep)
library(igraph)
G = latent.netdep(n.node = 200, rho = 0.2, dep.factor = -3, dep.range = c(-10, 0))
subG = snowball.sampling(G, 100)

youjin1207/netdep documentation built on May 30, 2019, 12:48 p.m.