blob: b0630a045a307ce88228e70945172025da03f85f [file] [log] [blame]
package org.onlab.graph;
/**
* Abstraction of a graph edge weight function.
*/
public interface EdgeWeight<V extends Vertex, E extends Edge<V>> {
/**
* Returns the weight of the given edge as a unit-less number.
*
* @param edge edge to be weighed
* @return edge weight as a unit-less number
*/
double weight(E edge);
}