private void InitSets(TNode start) { distanceFromStartToNode = new Dictionary <TNode, double> { { start, 0 } }; unexploredSet = new MaxPriorityHeap <TNode>(); unexploredSet.Add(start, 0); nodeToParent = new Dictionary <TNode, TNode>(); }
private void InitializeSets(TNode start, TNode goal) { nodesVisited = new Dictionary <TNode, bool>(); notEvaluatedNodes = new MaxPriorityHeap <TNode>(); notEvaluatedNodes.Add(start, heuristicImpl.HeuristicDistanceBetween(start, goal)); Dictionary <TNode, TNode> dictionary = new Dictionary <TNode, TNode>(); nodeToParent = dictionary; costFromStartToNode = new Dictionary <TNode, double> { { start, 0 } }; //costToGoal = new Dictionary<TNode, double> //{ // { start, heuristicImpl.DistanceBetween(start, goal) } //}; }