Learn R Programming

gmum.r (version 0.2.1)

calculateCentroids: calculateCentroids

Description

Using passed community.detection finds communities and for each community pick node with biggest betweenness score

Usage

calculateCentroids(object, community.detection.algorithm = spinglass.community)

Arguments

object
GNG object
community.detection.algorithm
Used algorithm from igraph package, by default spinglass.community

Details

Get centroids

Examples

Run this code
## Not run: 
# gng <- GNG(gng.preset.sphere(100))
# print(node(gng, calculateCentroids(gng)[1])$pos)
# ## End(Not run)

Run the code above in your browser using DataLab