// MARK: PRIMARY METHODS public List <Edge> CalculateAllPaths() { pq = new PQ(points.Count); populateAllPaths(startIndex); int currentIndex = CalculateResults(startIndex); return(CompileResults(currentIndex)); }
// MARK: PRIMARY METHODS public List<Edge> CalculateAllPaths() { pq = new PQ(points.Count); populateAllPaths(startIndex); int currentIndex = CalculateResults(startIndex); return CompileResults(currentIndex); }
public List <Edge> CalculateOnePath() { pq = new PQ(points.Count); populateOnePath(startIndex); int currentIndex = pq.PopMin(); currentIndex = CalculateResults(currentIndex); return(CompileResults(currentIndex)); }
public List<Edge> CalculateOnePath() { pq = new PQ(points.Count); populateOnePath(startIndex); int currentIndex = pq.PopMin(); currentIndex = CalculateResults(currentIndex); return CompileResults(currentIndex); }