Set up graph classes