예제 #1
0
        // MARK: PRIMARY METHODS
        public List <Edge> CalculateAllPaths()
        {
            pq = new PQ(points.Count);
            populateAllPaths(startIndex);

            int currentIndex = CalculateResults(startIndex);

            return(CompileResults(currentIndex));
        }
예제 #2
0
        // MARK: PRIMARY METHODS
        public List<Edge> CalculateAllPaths()
        {
            pq = new PQ(points.Count);
            populateAllPaths(startIndex);

            int currentIndex = CalculateResults(startIndex);

            return CompileResults(currentIndex);
        }
예제 #3
0
        public List <Edge> CalculateOnePath()
        {
            pq = new PQ(points.Count);

            populateOnePath(startIndex);
            int currentIndex = pq.PopMin();

            currentIndex = CalculateResults(currentIndex);

            return(CompileResults(currentIndex));
        }
예제 #4
0
        public List<Edge> CalculateOnePath()
        {
            pq = new PQ(points.Count);

            populateOnePath(startIndex);
            int currentIndex = pq.PopMin();

            currentIndex = CalculateResults(currentIndex);

            return CompileResults(currentIndex);
        }