All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.javagimmicks.graph.WeightedEdge Maven / Gradle / Ivy

There is a newer version: 0.99-alpha1
Show newest version
package net.sf.javagimmicks.graph;

/**
 * A special version of {@link Edge} that is weighted (it has a cost).
 */
public interface WeightedEdge> extends
      Edge
{
   /**
    * Returns the weight or cost of this {@link WeightedEdge}.
    * 
    * @return the weight or cost of this {@link WeightedEdge}
    */
   public double getCost();

   /**
    * Sets the weight or cost of this {@link WeightedEdge}.
    * 
    * @param cost
    *           the cost to set
    */
   public void setCost(double cost);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy