small changes in GraphRepresentation