generateEdgeList: Synthetic Graph Generation

Description Usage Arguments Value Examples

Description

This function creates a synthetic graph with truth clusters properties.

Usage

1
2
generateEdgeList(k = 2, aid = 100, aed = 10, n = 1000, prob = NULL,
  directed = FALSE)

Arguments

k

integer: the number of clusters.

aid

integer: average intra-cluster degree. Poisson parameters for number of neighbors within the cluster.

aed

integer: average inter-cluster degree. Poisson parameters for number of neighbors outside the cluster.

n

integer: number of vertices in the graph.

prob

vector of size k with probabilities that a node belongs to a cluster. If omitted, all probabilities are equal 1/k.

directed

boolean value describing if the edges are directed.

Value

A graph object of class ELgraph with truth clusters.

Examples

1
g = generateEdgeList(n=1000)

DavidGilgien/ML.RMCL documentation built on May 6, 2019, 1:54 p.m.