Refactoring and renaming VertexMeasure to Measure for use generically (vertex, edge and graph).