package berack96.lib.graph.visit; import java.util.List; import berack96.lib.graph.Edge; import berack96.lib.graph.Graph; /** * Interface that is helpful for implements visit that needs to retrieve the distance between a vertex to all the others * * @param the vertex * @param the weight * @author Berack96 */ public interface VisitDistSourceDest extends VisitStrategy { /** * Get the distance from the source to the destination
* The list contains the minimum path from the vertex marked as source to the destination vertex * * @param graph the graph were to find the min path * @param source the source vertex * @param destination the destination vertex * @return the distance * @throws NullPointerException if one of the vertex is null * @throws IllegalArgumentException if one of the vertex is not contained in the graph */ List> distance(Graph graph, V source, V destination) throws NullPointerException, IllegalArgumentException; }