Home   >   User Resources   >   Online Help   >   apaGraph.Communities.CommunityAdjacencyMatrix
 

 

Function index Version 3.0.0

apaGraph.Communities.CommunityAdjacencyMatrix(Edges, Communities)

Excel=apaGraph.Communities.CommunityAdjacencyMatrix(Edges, Communities)

Result

Returns the community adjacency matrix induced by a node-level graph and a community assignment. Entry (i,j) equals the number of edges connecting community i and community j. Rows and columns follow the sorted community indices.

Syntax

Edges: edge list; the first two columns contain the node indices, additional columns are ignored

Communities: community membership table; the first column contains the 1-based community index, the second column the 1-based node index