Class WeightedEdge<V,​W extends Weight<?>>


  • public class WeightedEdge<V,​W extends Weight<?>>
    extends Edge<V>
    A weighted edge (or arc) between two vertices.
    • Field Detail

      • weight

        protected final W extends Weight<?> weight
    • Constructor Detail

      • WeightedEdge

        public WeightedEdge​(V from,
                            V to,
                            W weight)
    • Method Detail

      • getWeight

        public final W getWeight()
        The weight of the edge.