get_graph_info function

Get metrics for a graph