[cvs-nhc98] Add -g mode to hat-check. The new option generates a grap