Adds the base classes for generating a DOM from a graph object.