working on grpahs