update graph to accept number of commits