added a tool to visualize the graph