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, sort
public VertexClusterSet(ArchetypeGraph underlyingGraph)
underlyingGraph
- public Graph getClusterAsNewSubGraph(int index)
getClusterAsNewSubGraph
in class ClusterSet
index
- the position index of the cluster in the collectionpublic ClusterSet createEquivalentClusterSet(Graph anotherGraph)
createEquivalentClusterSet
in class ClusterSet
anotherGraph
- a new graph whose vertices are equivalent to those in the original graph