correct rank.js bug: get minLen from edge.value