:Completed the graph functionality