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

 

Function index Version 3.0.0

apaGraph.Layout.ForceAtlas2(Edges, UseWeightsOtherwiseUnitWeights)

Excel=apaGraph.Layout.ForceAtlas2(Edges, UseWeightsOtherwiseUnitWeights)

Result

ForceAtlas2 layout of an edge list. Returns a layout matrix with the node index in the first column and the X/Y coordinates in the next two columns.

Syntax

Edges: n x 3 edge list, the first two columns containing the node indices, the third column the distance between the two nodes (smaller = closer, e.g. sqrt(2(1-ρ)) for correlations ρ)

UseWeightsOtherwiseUnitWeights: TRUE to use the third column as edge distances, so that more similar nodes are placed closer together; FALSE to use unit distances

Algorithm

The layout is calculated with the default parameters of apaGraph.Layout.ForceAtlas2.AllParams, except for the maximum number of iterations, which is set to 1000 times the number of nodes.

Remarks

ForceAtlas2 is a continuous force-directed layout algorithm by Jacomy et al., developed for the Gephi software.

Pressing Esc aborts the calculation; the function then returns "Calculation aborted by user."