Description Usage Arguments Examples
Functions to extract meta information of grapherator
object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | getNumberOfNodes(graph)
getNumberOfEdges(graph)
getNumberOfClusters(graph)
getNumberOfWeights(graph)
getNodeCoordinates(graph, cluster.centers = FALSE)
getWeightMatrix(graph, objective)
getAdjacencyMatrix(graph)
getNodeDegrees(graph)
|
graph |
[ |
cluster.centers |
[ |
objective |
[ |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.