java.io.Serializable
public class ClusterGenerator
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field | Description |
---|---|---|
ClusterDiagram |
mCluster |
Constructor | Description |
---|---|
ClusterGenerator(ClusterDiagram aCluster) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
advance() |
Advances the cluster to the next cluster matching the given criteria.
|
void |
calcReeHoover() |
Calculates the Ree-Hoover coefficient (coefficient for Ree-Hoover
diagram / coefficient for Mayer diagram) for mCluster and sets mCluster's
mReeHooverFactor to it.
|
static void |
findMaxScore(boolean excludeRootPermutations,
ClusterDiagram cluster,
int[] score) |
Determines whether any cluster permuted from the given one by
exchanging points from startPoint to stopPoint (inclusive) has a higher
score than that passed in.
|
boolean |
isArticulationPair(int exclude1,
int exclude2) |
determines if the given pair of points is an articulation pair.
|
boolean |
isArticulationPoint(int exclude) |
Determines if the given point is an articulation point.
|
boolean |
isConnected() |
Determines if the cluster is connected.
|
boolean |
isConnected(int exclude) |
Determines if the cluster is connected after removal of the
given node.
|
boolean |
isElementary() |
Convenience method to determine whether the cluster is elementary or not.
|
boolean |
isMaximumScore() |
Determines if the cluster has a maximum score.
|
boolean |
isNodalPoint(int exclude) |
Determines if the given node is a nodal point.
|
static void |
main(java.lang.String[] args) |
Demonstrates how to use this class.
|
void |
reset() |
Resets the cluster generator.
|
void |
setAllPermutations(boolean flag) |
Set whether to generate all permutations.
|
void |
setExcludeArticulationPair(boolean flag) |
Set whether to exclude clusters having an articulation pair.
|
void |
setExcludeArticulationPoint(boolean flag) |
Set whether to exclude clusters having an articulation point.
|
void |
setExcludeNodalPoint(boolean flag) |
Set whether to exclude clusters having a nodal point.
|
void |
setMakeReeHover(boolean flag) |
Set whether to generate Ree-Hoover diagrams.
|
void |
setOnlyConnected(boolean flag) |
Set whether to only generate clusters that are singly-connected.
|
void |
setOnlyDoublyConnected(boolean flag) |
Set whether to only generate clusters that are doubly-connected.
|
void |
setStartConnection(int i) |
|
void |
setStopConnection(int i) |
|
static boolean |
swapAllAndCompare(boolean excludeRootPermutations,
ClusterDiagram cluster,
int[] score) |
public final ClusterDiagram mCluster
public ClusterGenerator(ClusterDiagram aCluster)
public void setOnlyConnected(boolean flag)
public void setOnlyDoublyConnected(boolean flag)
public void setExcludeNodalPoint(boolean flag)
public void setExcludeArticulationPoint(boolean flag)
public void setExcludeArticulationPair(boolean flag)
public void setAllPermutations(boolean flag)
public void setMakeReeHover(boolean flag)
public static boolean swapAllAndCompare(boolean excludeRootPermutations, ClusterDiagram cluster, int[] score)
public static void findMaxScore(boolean excludeRootPermutations, ClusterDiagram cluster, int[] score)
public boolean isConnected(int exclude)
public boolean isConnected()
public boolean isElementary()
public boolean isNodalPoint(int exclude)
public boolean isArticulationPoint(int exclude)
public boolean isArticulationPair(int exclude1, int exclude2)
public boolean isMaximumScore()
public void calcReeHoover()
public void reset()
public void setStartConnection(int i)
public void setStopConnection(int i)
public boolean advance()
public static void main(java.lang.String[] args)