Skip to content

Commit

Permalink
Change _.minBy to _.min
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlong committed Feb 11, 2018
1 parent 456cb97 commit aa4584e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rank/util.js
Expand Up @@ -38,7 +38,7 @@ function longestPath(g) {
}
visited[v] = true;

var rank = _.minBy(_.map(g.outEdges(v), function(e) {
var rank = _.min(_.map(g.outEdges(v), function(e) {
return dfs(e.w) - g.edge(e).minlen;
}));

Expand Down

0 comments on commit aa4584e

Please sign in to comment.