cmd: improved readability of testGraph().
cmd: fix: ignore some vertices in detectCycles().