package edu.cmu.cs211.graph; import java.util.List; /** * A directed graph search interface. * * V and E are the vertex and edge types for the graph that we will be searching. * That is, this function returns a list of edges (List), and takes a graph, * a start vertex, and an ending vertex. */ public interface GraphSearch { /** * * @param The type for the vertices in the graph. * @param The type for edges in the graph. * @param g The graph in which to search * @param start The starting vertex. * @param finish The ending vertex. * @return The list of edges in the path, or null if there is no path. */ public > List shortestPath(Graph g, V start, V finish); }