package graph; /** Weighted objects have a weight (a double value) returned by the * weight method. * @author P. N. Hilfinger */ public interface Weighted { /** Returns my weight. */ double weight(); }