cargraph constraints added

Now cargraph can be constrained so that students cannot progress unless
their graphs meet error criteria.