renamed sumval - sum_edges
avg sum_edges