calculateCentroids: calculateCentroids

Description Usage Arguments Details Examples

View source: R/gng.R

Description

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

Usage

1
2
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

1
2
3
4
5
## Not run: 
gng <- GNG(gng.preset.sphere(100))
print(node(gng, calculateCentroids(gng)[1])$pos)

## End(Not run)

gmum.r documentation built on May 29, 2017, 3:52 p.m.