|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mascoptLib.algos.abstractalgos.PrimMST
This class computes the Minimum Spanning Tree of a graph MSTEdgeSet
computes the tree and outputs the AbstractEdgeSet containing the tree and MSTValue
outputs the value of the tree. Please note that at this moment only integer are supported as values for the edges.
Constructor Summary | |
PrimMST(mascoptLib.abstractGraph.AbstractGraph g)
Simple constructor. |
Method Summary | |
Iterator |
computeMST(String entryType)
This method computes the Minimum Spanning Tree of the graph |
Iterator |
getMstEdgeSetIterator(String entryType)
This method provides an iterator over the edges of the Minimum Spanning Tree of the graph. |
Double |
getMSTSize(String entryType)
This method provides the value of the Minimum Spanning Tree of the graph. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PrimMST(mascoptLib.abstractGraph.AbstractGraph g)
Method Detail |
public Double getMSTSize(String entryType)
entryType
. It must be remarked that if the Minimum Spanning Tree has not been previously computed, it will be done now.
entryType
- the entry type to consider when taking the values of the edges.
public Iterator getMstEdgeSetIterator(String entryType)
entryType
. It must be remarked that if the Minimum Spanning Tree has not been previously computed, it will be done now. Otherwise, the stored value will be used. If the input graph has changed, one should consider to compute again the MST before calling this method.
entryType
- the entry type to consider when taking the values of the edges.
computeMST(String entryType)
public Iterator computeMST(String entryType)
entryType
- the entry type to consider when taking the values of the edges.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |