Ancestor Test: Checking self is not an error
Fix: Termination of graphs w/ backedges.

This patch fixes a bug in edge termination w.r.t.
graphs containing explicit backedges. Prior to this
patch, nodes could continue to wait for tokens after
the signal to terminate had been received.