getter: Getter functions.

Description Usage Arguments Examples

Description

Functions to extract meta information of grapherator object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15

Arguments

graph

[grapherator]
Graph.

cluster.centers

[logical(1)]
Return coordinates of cluster centers only? Default is FALSE.

objective

[integer(1)]
Number of weight matrix to return.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
g = graph(0, 100)
g = addNodes(g, n = 25, generator = addNodesGrid)
g = addEdges(g, generator = addEdgesGrid)
g = addWeights(g, generator = addWeightsRandom, method = runif, min = 5, max = 100, to.int = TRUE)
g = addWeights(g, generator = addWeightsDistance, method = "euclidean")

getNumberOfNodes(g)
getNumberOfEdges(g)
getNumberOfClusters(g)
getNumberOfWeights(g)
getNodeCoordinates(g)
getWeightMatrix(g, 2)
getAdjacencyMatrix(g)
getNodeDegrees(g)

grapherator documentation built on May 1, 2019, 8:19 p.m.