add the calculation of number of nodes in graph_metric.h and subgraphs_info.py