package graph; /** An object representing a function that computes the distance between * two objects of type TYPE. * @author P. N. Hilfinger */ public interface Distancer { /** Returns the distance from V0 to V1. */ double dist(Type v0, Type v1); }