|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.graph.analysis.Analysis
ptolemy.graph.analysis.ClusterNodesAnalysis
public class ClusterNodesAnalysis
Given a collection of nodes in a graph, replace the subgraph induced by the nodes with a single node N. Each edge that connects a node Z outside the subgraph a node inside the subgraph is replaced by an edge (with the same edge weight, if there is one) that connects Z to N. Return the subgraph that is replaced; that is, return the subgraph induced by the given collection of nodes.
Graph
Red (ssb) |
Red (shahrooz) |
Constructor Summary | |
---|---|
ClusterNodesAnalysis(ClusterNodesTransformer analyzer)
Construct an instance of this class with a given analyzer. |
|
ClusterNodesAnalysis(Graph graph,
java.util.Collection nodeCollection,
Node superNode)
Construct an instance of this class for a given graph. |
Method Summary | |
---|---|
Graph |
clusterNodes()
Return the clustered Graph. |
java.lang.String |
toString()
Return a description of the analysis and the associated analyzer. |
boolean |
validAnalyzerInterface(Analyzer analyzer)
Check if a given analyzer is compatible with this analysis. |
Methods inherited from class ptolemy.graph.analysis.Analysis |
---|
analyzer, changeAnalyzer, graph, valid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClusterNodesAnalysis(Graph graph, java.util.Collection nodeCollection, Node superNode)
graph
- The graph.nodeCollection
- The collection of nodes.superNode
- The node that replaces the subgraph.public ClusterNodesAnalysis(ClusterNodesTransformer analyzer)
analyzer
- The default Analyzer.Method Detail |
---|
public Graph clusterNodes()
public java.lang.String toString()
toString
in class Analysis
public boolean validAnalyzerInterface(Analyzer analyzer)
validAnalyzerInterface
in class Analysis
analyzer
- The given analyzer.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |