apaGraph.Communities.GreedyAgglomerative.N(Edges, Layout, N, ShowInfo)
=apaGraph.Communities.GreedyAgglomerative.N(Edges, Layout, N, ShowInfo)Result
Returns greedy agglomerative modularity communities for a fixed number of communities N. The algorithm starts with singleton communities and repeatedly merges the pair with the highest modularity gain. Returns one row per node, including the layout coordinates.
Syntax
Edges: edge list; the first two columns contain the node indices, the third column the distance
Layout: node layout; the first column contains the x coordinates, the second column the y coordinates
N: target number of communities
ShowInfo: TRUE to show additional columns with community and node information: 1) average internal strength of the community, 2) internal strength of the node within the community, 3) external strength of the node
