public class LibraryMCS.ClusterEnumerator
extends java.lang.Object
ClusterEnumerator
is the right way to obtain results of a LibraryMCS clustering.
When clustering terminates, an instance of this class can be retrieved from the LibraryMCS class by
the LibraryMCS.getClusterEnumerator(boolean)
method. The enumerator then
returns each cluster one-by-one starting from the top level of the hierarchy and traversing the dendogram level
by level.
LibraryMCS
class have to be applied (see LibraryMCS.getClusterEnumerator(boolean)
,
LibraryMCS.getClusterEnumerator(boolean)
).Modifier | Constructor and Description |
---|---|
protected |
ClusterEnumerator(chemaxon.clustering.MGraph g,
boolean leavesOnly) |
protected |
ClusterEnumerator(chemaxon.clustering.MGraph g,
boolean leavesOnly,
boolean selectedOnly) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Checks if there is at least one more element in the cluster hierachy that has not yet been listed.
|
Molecule |
next()
Returns the next element in the cluster hierarchy that has not yet been processed.
|
protected ClusterEnumerator(chemaxon.clustering.MGraph g, boolean leavesOnly)
protected ClusterEnumerator(chemaxon.clustering.MGraph g, boolean leavesOnly, boolean selectedOnly)
public boolean hasNext()
public Molecule next()
Molecule
returned, and other fields generated by the clustering algorithm are
added:
RecoveryID
unique number of leaf nodes form left to right, starting from oneHierarchyID
hierarchical index of path from top to leafCluster.Member
unique cluster id . unique element id in the clusterMolecule
in the hierarchy