
net.sf.javagimmicks.graph.WeightedEdge Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gimmicks-graph Show documentation
Show all versions of gimmicks-graph Show documentation
A small API for graph data structures
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