public final class PrecomputedMSTCollection
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
static PrecomputedMSTCollection |
computeUpTo(int maxVertices)
Computes all optimal mst decision trees for graphs with up to maxVertices vertices
|
<T,E extends DirectedEdge<T,E> & java.lang.Comparable<? super E>> |
findMST(int vertices,
java.util.List<E> edges) |
int |
getMaxVertices()
Returns the max number of vertices of a graph up to which the optimal mst decision trees have been computed.
|
public int getMaxVertices()
public static PrecomputedMSTCollection computeUpTo(int maxVertices)
maxVertices
- the number of vertices that a graph of which we want to compute the mst in the optimal number of
comparisons may havepublic <T,E extends DirectedEdge<T,E> & java.lang.Comparable<? super E>> EdgeList<E> findMST(int vertices, java.util.List<E> edges)