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