Fix: Correctly ignore backedges in depth funcs.

pgm_get_min_depth() and pgm_get_max_depth() incorrectly handle
the filtering out of backedges in depth computations. This patch
corrects this oversight.
depthtest: Test graphs with backedges.