add functionality to GraphModel