The clustering mode
BY_SUBGRAPHS
arranges the nodes of each subgraph in a circle but keeps the
position of each subgraph fixed. It works only if the generic
mechanism to lay out connected components is disabled. See Layout of connected components. It orders the
nodes along the circle to avoid link crossings.
Node offset
The layout algorithm tries to preserve a
minimum distance between nodes of the same cluster or subgraph.
Example of specifying the offset (CL
algorithm)
To specify the offset:
In CSS
Add to the
GraphLayout
section:
offset: "20.0";
In Java
Use the method:
void setOffset(float offset)
Maximum number of permutations
The layout algorithm orders the nodes
along the circle to avoid link crossings. To do so, it tries
various permutations of the nodes of each cluster and keeps the
best one; the more permutations tried, the slower the layout
algorithm, but also the higher the quality of the result.
Example of specifying the maximum
number of permutations (CL algorithm)
To specify the maximum number of
permutations:
In CSS
Add to the
GraphLayout
section:
maxNumberOfPermutations: "15";
In Java
Use the method:
void setMaxNumberOfPermutations(int numberOfPermutations)
This parameter has no effect if the clustering mode is
AUTOMATIC
or
BY_CLUSTER_IDS
.