21 lines
427 B
Java
21 lines
427 B
Java
package berack96.lib.graph.visit;
|
|
|
|
import berack96.lib.graph.Edge;
|
|
|
|
import java.util.Set;
|
|
|
|
/**
|
|
* @param <V>
|
|
*/
|
|
public interface VisitMST<V> extends VisitStrategy<V> {
|
|
|
|
/**
|
|
* Return the latest calculated MST.<br>
|
|
* https://en.wikipedia.org/wiki/Minimum_spanning_tree
|
|
*
|
|
* @return the latest MST
|
|
* @throws NullPointerException if there is no last calculated MST
|
|
*/
|
|
Set<Edge<V>> getMST();
|
|
}
|