Package graph
Klasse WrapperElement<T extends VertexMarking>
java.lang.Object
graph.WrapperElement<T>
- Typparameter:
T
- The type of vertex marking associated with the element.
Represents an element stored in a priority queue for graph algorithms.
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorBeschreibungWrapperElement
(MarkedVertex<T> element, double priority) Constructs a WrapperElement with the specified marked vertex and priority. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungRetrieves the marked vertex stored in this wrapper element.double
Retrieves the priority associated with this wrapper element.toString()
Returns a string representation of this WrapperElement.
-
Felddetails
-
element
-
priority
private double priority
-
-
Konstruktordetails
-
WrapperElement
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
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
Returns a string representation of this WrapperElement.
-