Package graph
Klasse VertexWeightMarking
java.lang.Object
graph.Marking
graph.VertexMarking
graph.VertexWeightMarking
Represents a weight marking associated with a vertex in a graph.
Extends
VertexMarking
.-
Feldübersicht
-
Konstruktorübersicht
KonstruktorBeschreibungVertexWeightMarking
(int weight) Constructs a vertex weight marking with the specified weight. -
Methodenübersicht
-
Felddetails
-
weight
private int weight
-
-
Konstruktordetails
-
VertexWeightMarking
public VertexWeightMarking(int weight) Constructs a vertex weight marking with the specified weight.- Parameter:
weight
- The weight value associated with the vertex.
-
-
Methodendetails
-
getWeight
public int getWeight()Retrieves the weight associated with this vertex weight marking.- Gibt zurück:
- The weight of the vertex marking.
-
setWeight
public void setWeight(int weight) Sets the weight associated with this vertex weight marking.- Parameter:
weight
- The new weight value to set.
-