Overhauled the graph classes.