Exemplo n.º 1
0
    public void updateParent(SourceToGoalQEntry newParent, int costOfEdge)
    {
        this.sourceEdge       = newParent;
        this.sourceToNodeCost = newParent.sourceToNodeCost + costOfEdge;

        newParent.updateChild(this);
    }
Exemplo n.º 2
0
 private void updateChild(SourceToGoalQEntry newChild)
 {
     this.goalEdge = newChild;
 }