getRoutesByCost method
Gets routes with cost less than or equal to maxCost
Implementation
List<LinkStateRouteEntry<T>> getRoutesByCost(num maxCost) =>
routes.values.where((route) => route.cost <= maxCost).toList();
Gets routes with cost less than or equal to maxCost
List<LinkStateRouteEntry<T>> getRoutesByCost(num maxCost) =>
routes.values.where((route) => route.cost <= maxCost).toList();