public class VertexClusterSet extends ClusterSet
| Constructor and Description |
|---|
VertexClusterSet(ArchetypeGraph underlyingGraph)
Constructs and initializes the set
|
| Modifier and Type | Method and Description |
|---|---|
ClusterSet |
createEquivalentClusterSet(Graph anotherGraph)
Creates a new cluster set where each vertex and cluster in the new cluster set correspond 1-to-1 with
those in the original graph
|
Graph |
getClusterAsNewSubGraph(int index)
Constructs a new graph from the given cluster
|
addCluster, checkLegality, getCluster, getClusters, getUnderlyingGraph, iterator, size, sortpublic VertexClusterSet(ArchetypeGraph underlyingGraph)
underlyingGraph - public Graph getClusterAsNewSubGraph(int index)
getClusterAsNewSubGraph in class ClusterSetindex - the position index of the cluster in the collectionpublic ClusterSet createEquivalentClusterSet(Graph anotherGraph)
createEquivalentClusterSet in class ClusterSetanotherGraph - a new graph whose vertices are equivalent to those in the original graph