The clustering mode
ibm_ilog.graphlayout.circular.CircularLayout.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:
Use the method:
layout.setOffset(20)
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:
Use the method:
layout.setMaxNumberOfPermutations(100)
This parameter has no effect if the clustering mode is
AUTOMATIC
or BY_CLUSTER_IDS
.