public void updateChild(GoalToSourceQEntry newChild, int costOfEdge) { this.goalEdge = newChild; this.nodeToGoalCost = newChild.nodeToGoalCost + costOfEdge; newChild.updateParent(this); }
private void updateParent(GoalToSourceQEntry newParent) { this.sourceEdge = newParent; }