fix(graphs.graph) Fixed logic to calculate min and mac