Download JGraph User Manual

Transcript
JGraph User Manual
7.3.2.4.1 isOptimizeNodeDistribution and nodeDistributionCostFactor
isOptimizeNodeDistribution determines whether or not to attempt to distribute
nodes evenly around the available space. If isOptimizeNodeDistribution is set to
true then nodeDistributionCostFactor is the factor by which the cost of a
particular node distribution is multiplied by to make an energy cost contribution to the total
energy of a particular graph layout. Increasing this value tends to result in a better
distribution of nodes across the available space, at the partial cost of other graph aesthetics,
in particular edge lengths.
Illustration 64 : nodeDistributionCost = 10,000
Illustration 65 : The same graph with nodeDistributionCost = 500,000
Page 120