Yes, I think that would work nice. I think I'll keep the sum intermediate variable though; A '/ graph.keys.length' at the end of a line after 'end' might be a bit obscure.