Package graph
Klasse EdgeWeightMarking
java.lang.Object
graph.Marking
graph.EdgeMarking
graph.EdgeWeightMarking
Class representing a specific type of edge marking: edge weight.
Inherits from EdgeMarking.
-
Feldübersicht
Modifizierer und TypFeldBeschreibungprivate int
The weight value associated with this edge marking. -
Konstruktorübersicht
KonstruktorBeschreibungEdgeWeightMarking
(int weight) Constructor to initialize the EdgeWeightMarking with a specified weight. -
Methodenübersicht
-
Felddetails
-
weight
private int weightThe weight value associated with this edge marking.
-
-
Konstruktordetails
-
EdgeWeightMarking
public EdgeWeightMarking(int weight) Constructor to initialize the EdgeWeightMarking with a specified weight.- Parameter:
weight
- The weight value to set.
-
-
Methodendetails
-
setWeight
public void setWeight(int weight) Sets the weight value of this edge marking.- Parameter:
weight
- The weight value to set.
-
getWeight
public int getWeight()Retrieves the weight value of this edge marking.- Gibt zurück:
- The weight value of this edge marking.
-