datagraph - addded function to check for subclasses and adjust graph as
needed