getDistance

public abstract M getDistance(int from, int to)

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