Interface EdgeWeights<E>

Type Parameters:
E - edge class
All Known Implementing Classes:
PropertyEdgeWeights
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface EdgeWeights<E>
Edge weights concepts. Allows to associate a fractional (floating-point) weight with the edges in a graph.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Retrieves the weight of an edge.
  • Method Details

    • getEdgeWeight

      float getEdgeWeight(E edge)
      Retrieves the weight of an edge.
      Parameters:
      edge - the edge
      Returns:
      the weight of the given edge