add check coverage to graph for debugging.  fix some iterator bugs