add functionality to manage graphs