|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmocgraph.analysis.Analysis
mapss.dif.graph.MinimumSpanningTreeAnalysis
public class MinimumSpanningTreeAnalysis
Computation of a minimum spanning tree in a graph.
The returned list cannot be modified when the client uses the default strategy.
| Constructor Summary | |
|---|---|
MinimumSpanningTreeAnalysis(mocgraph.Graph graph,
mocgraph.mapping.ToDoubleMapping edgeWeights)
Construct an instance of this class for a given graph. |
|
MinimumSpanningTreeAnalysis(MinimumSpanningTreeAnalyzer analyzer)
Construct an instance of this class using a given analyzer. |
|
| Method Summary | |
|---|---|
java.util.List |
edges()
Return the edges in the computed minimum spanning tree. |
java.lang.String |
toString()
Return a description of the analysis and the associated analyzer. |
boolean |
validAnalyzerInterface(mocgraph.analysis.analyzer.Analyzer analyzer)
Check if a given analyzer is compatible with this analysis. |
double |
weight()
Return the weight (sum of edge weights) of a minimal spanning tree. |
| Methods inherited from class mocgraph.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 MinimumSpanningTreeAnalysis(mocgraph.Graph graph,
mocgraph.mapping.ToDoubleMapping edgeWeights)
graph - The given graph.edgeWeights - The edge weights.public MinimumSpanningTreeAnalysis(MinimumSpanningTreeAnalyzer analyzer)
analyzer - The given analyzer.| Method Detail |
|---|
public java.util.List edges()
Edge.
public java.lang.String toString()
toString in class mocgraph.analysis.Analysispublic boolean validAnalyzerInterface(mocgraph.analysis.analyzer.Analyzer analyzer)
validAnalyzerInterface in class mocgraph.analysis.Analysisanalyzer - The given analyzer.
public double weight()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||