addCoordinates: Add node coordinates to graph.

Description Usage Arguments Value See Also

View source: R/graph.R


Places node coordinates in the two-dimensional euclidean plane.


addCoordinates(graph, n, generator, by.centers = FALSE, = NULL, ...)



Multi-objective graph problem.


Number of coordinates to place. If by.centers is FALSE a single integer value is expected. Otherwise, a vector v may be passed. In this case v[i] coordinates are generated for each cluster. However, if a single value is passed and == TRUE, each cluster is assigned the same number of coordinates.


[function(n, ...)]
Function used to generate coordinates. The generator needs to expect the number of points to generate as the first argument n. Additional control argument are possible.


Should coordinates be placed for each cluster center seperately? This enables geneation of clustered coordinates. Default is FALSE.

[function(cc) | NULL]
Optional function which is applied to each cluster center cc before the generation of coordinates in case by.centers is TRUE. This enables to specifically determine additional parameters for the generator for each cluster.


Furhter arguments passed down to generator.


[mcGP] Multi-objective graph problem.

See Also

Other graph generators: addCenters, addWeights, mcGP

mcMST documentation built on May 1, 2019, 10:29 p.m.