calculate the size of graph