Added some more functions to graphs