src/pathfinder.js
function nodeValue(node1, node2) {
    return (node1.dist + heuristic(node1.point)) - (node2.dist + heuristic(node2.point));
  }
function nodeValue(node1, node2) {
    return (node1.dist + heuristic(node1.point)) - (node2.dist + heuristic(node2.point));
  }
function nodeValue ( node1 , node2 ) { return ( node1 . dist + heuristic ( node1 . point ) ) - ( node2 . dist + heuristic ( node2 . point ) ) ; }
Compares the value of two nodes.
Compares the value of two nodes .