package graph; /** A type of object that determines a weight of a value of type ITEM. * @author P. N. Hilfinger. */ public interface Weighting { /** Returns the weight of X. */ double weight(Item x); }