work on graphs