Work around bug in boost::clear_vertex.

Instead of relying on this functionality, we now remove the edges while we are
at it.
Add alternative definition of alternation depth.

This version relies on a priority-based ordering instead of a vertex-based
ordering, and coincides with what was previously implemented in pginfo.
Add -Wall -Wextra to compiler flags, and fix the resulting warnings.