We must show that A1 and A2 are satisfied at each stage of the algorithm and that the algorithm terminates with equal to the set of all nodes reachable from .