Package graph

Klasse WrapperElement<T extends VertexMarking>

java.lang.Object
graph.WrapperElement<T>
Typparameter:
T - The type of vertex marking associated with the element.

class WrapperElement<T extends VertexMarking> extends Object
Represents an element stored in a priority queue for graph algorithms.
  • Felddetails

  • Konstruktordetails

    • WrapperElement

      public WrapperElement(MarkedVertex<T> element, double priority)
      Constructs a WrapperElement with the specified marked vertex and priority.
      Parameter:
      element - The marked vertex to wrap.
      priority - The priority associated with the element.
  • Methodendetails

    • getElement

      public MarkedVertex<T> getElement()
      Retrieves the marked vertex stored in this wrapper element.
      Gibt zurück:
      The marked vertex.
    • getPriority

      public double getPriority()
      Retrieves the priority associated with this wrapper element.
      Gibt zurück:
      The priority.
    • toString

      public String toString()
      Returns a string representation of this WrapperElement.
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      A string representation containing the element and its priority.