예제 #1
0
    public void updateChild(GoalToSourceQEntry newChild, int costOfEdge)
    {
        this.goalEdge       = newChild;
        this.nodeToGoalCost = newChild.nodeToGoalCost + costOfEdge;

        newChild.updateParent(this);
    }
예제 #2
0
 private void updateParent(GoalToSourceQEntry newParent)
 {
     this.sourceEdge = newParent;
 }