changed edge metric length to not be independent of fixed resolution