public static Result <Route> TryBuild(RouterDb db, Profile profile, RouterPoint source, RouterPoint target, Path path)
        {
            List <uint> uintList = new List <uint>();

            path.AddToList(uintList);
            return(CompleteRouteBuilder.TryBuild(db, profile, source, target, uintList));
        }
        public static Result <Route> TryBuild(RouterDb db, Profile profile, RouterPoint source, RouterPoint target, List <uint> path)
        {
            CompleteRouteBuilder completeRouteBuilder = new CompleteRouteBuilder(db, profile, source, target, path);

            completeRouteBuilder.Run();
            if (completeRouteBuilder.HasSucceeded)
            {
                return(new Result <Route>(completeRouteBuilder.Route));
            }
            return(new Result <Route>(string.Format("Failed to build route: {0}", (object)completeRouteBuilder.ErrorMessage)));
        }
 public static Route Build(RouterDb db, Profile profile, RouterPoint source, RouterPoint target, List <uint> path)
 {
     return(CompleteRouteBuilder.TryBuild(db, profile, source, target, path).Value);
 }