Updated documentation for graph.py