Class LabeledEdge<V,L>

java.lang.Object
com.aoapps.hodgepodge.graph.Edge<V>
com.aoapps.hodgepodge.graph.LabeledEdge<V,L>

public class LabeledEdge<V,L> extends Edge<V>
A weighted edge (or arc) between two vertices.
  • Field Details

    • label

      protected final L label
  • Constructor Details

    • LabeledEdge

      public LabeledEdge(V from, V to, L label)
  • Method Details

    • getLabel

      public final L getLabel()
      The label of the edge.
    • toString

      public String toString()
      Overrides:
      toString in class Edge<V>