expanded graph_stats method