@@ -0,0 +1,684 @@
+package son.graph;%0A%0Aimport java.util.List;%0A%0Aimport son.graph.algorithms.RoutesContraint;%0Aimport son.graph.algorithms.RoutesFinder;%0Aimport son.graph.models.interfaces.Node;%0A%0Apublic abstract class RoutesFinderByConstraint extends RoutesFinder %7B%0A%09public RoutesFinderByConstraint(RoutesFinder routesFinder) %7B%0A%09%09super(routesFinder.getGraph());%0A%09%09this.routesFinder = routesFinder;%0A%09%7D%0A%0A%09private final RoutesFinder routesFinder;%0A%0A%09@Override%0A%09public void calculate(String beginName, String endName, RoutesContraint routesContraints) %7B%0A%09%09routesFinder.calculate(beginName, endName, routesContraints);%0A%09%7D%0A%0A%09@Override%0A%09public List%3CList%3CNode%3E%3E getRoutes() %7B%0A%09%09return routesFinder.getRoutes();%0A%09%7D%0A%7D%0A

Add route finder by constraint so that we can apply different constraint