public static CountRoutesFilter ExactlyStops(Graph graph, Node start, Node end, int value) { var filter = new CountRoutesFilter(graph, start, end); filter.exactlyStops = value; filter.maxStops = value; return(filter); }
public static CountRoutesFilter MaxCost(Graph graph, Node start, Node end, int value) { var filter = new CountRoutesFilter(graph, start, end); filter.maxCost = value; return(filter); }