new HeuristicPolicyEuclidSquared()
Methods
-
static calculate(graph, source, target) → {Number}
-
Calculates the squared euclidean distance between two nodes.
Parameters:
Name Type Description graphGraph The graph.
sourceNumber The index of the source node.
targetNumber The index of the target node.
Returns:
Number -The squared euclidean distance between both nodes.