min max in graph, num samples to sum