Package dev.nm.graph

Interface WeightedEdge<V>

  • Type Parameters:
    V - vertex type
    All Superinterfaces:
    HyperEdge<V>
    All Known Subinterfaces:
    WeightedArc<V>
    All Known Implementing Classes:
    SimpleArc, SimpleEdge

    public interface WeightedEdge<V>
    extends HyperEdge<V>
    A weighted edge has a weight or a cost associated with it.
    • Method Detail

      • cost

        double cost()
        Gets the cost or weight of this edge.
        Returns:
        the edge cost