getDistance

public M getDistance(int i, int j)

Method to retrieve the distance between the two locations. The operation can be commutative or not, depending on the implementation.

Return

the aggregated distance to reach tostarting at from.

Parameters

from

source form which the computation starts

to

destination to which to look for computing the distance