示例#1
0
        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);
        }
示例#2
0
        public static CountRoutesFilter MaxCost(Graph graph, Node start, Node end, int value)
        {
            var filter = new CountRoutesFilter(graph, start, end);

            filter.maxCost = value;

            return(filter);
        }