This repository has been archived on 2025-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
aud-2021-h07-gruphi/src/main/java/h07/algorithm/ShortestPathsAlgorithm.java

15 lines
346 B
Java
Raw Normal View History

2021-06-28 23:54:52 +02:00
package h07.algorithm;
import h07.algebra.Monoid;
import h07.graph.DirectedGraph;
import h07.graph.Path;
import java.util.Comparator;
import java.util.Map;
public interface ShortestPathsAlgorithm<V, A> {
Map<V, Path<V, A>> shortestPaths(
DirectedGraph<V, A> graph, V startNode,
Monoid<A> monoid, Comparator<? super A> comparator);
}