Description Usage Arguments Details Examples
Using passed community.detection finds communities and for each community pick node with biggest betweenness score
1 2 | calculateCentroids(object,
community.detection.algorithm = spinglass.community)
|
object |
GNG object |
community.detection.algorithm |
Used algorithm from igraph package, by default spinglass.community |
Get centroids
1 2 3 4 5 | ## Not run:
gng <- GNG(gng.preset.sphere(100))
print(node(gng, calculateCentroids(gng)[1])$pos)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.