Home   >   User Resources   >   Online Help   >   apaGraph.Layout.Concentric
 

 

Function index Version 3.0.0

apaGraph.Layout.Concentric(Edges, IsWeighted, CentralityMeasure)

Excel=apaGraph.Layout.Concentric(Edges, IsWeighted, CentralityMeasure)

Result

Concentric layout of a graph defined by an edge list: the more central a node, the closer it is to the centre. Returns a matrix with the node index in the first column and the x/y coordinates in the next two columns.

Syntax

Edges: edge list; the first two columns contain the node indices, an optional third column the weight

IsWeighted: TRUE to use the edge weights, FALSE to use unit weights

CentralityMeasure: optional; centrality that determines the radius: 0 = degree, 1 = closeness, 2 = betweenness, 3 = eigenvector, 4 = eccentricity; default: 0

Remarks

The centralities are computed as in apaGraph.DegreeCentrality.FromEdges, apaGraph.ClosenessCentrality.FromEdges, apaGraph.BetweennessCentrality.FromEdges, apaGraph.EigenvectorCentrality.FromEdges (absolute values) and apaGraph.Eccentricity, with the same IsWeighted. For eccentricity, a smaller value is more central, and the graph must be connected.

The radius of a node with centrality c is (M - c)/(M - m), where M and m are the highest and lowest centrality, so the most central node is at the centre and the least central nodes are on the unit circle; nodes with equal centrality share a circle. If several nodes share the highest centrality, the radii are shifted outwards so that these nodes lie on an inner circle. If all centralities are equal, all nodes lie on the unit circle.

The nodes are placed from the inside out. Each node is placed as close as possible to the mean angle of its neighbours already placed (nodes without placed neighbours follow a golden-angle sequence, starting at the top), while keeping a distance of at least 0.5·√(π/n) to the nodes already placed, where n is the number of nodes; if no position on its circle achieves this distance, the position with the largest distance is used. Only nodes that occur in the edge list are returned, sorted by node index.