package graph; /** * Represents a marking associated with a vertex in a graph. * This class serves as a base abstraction for vertex markings. */ public abstract class VertexMarking extends Marking { // This class currently does not have any additional attributes or methods. // It extends Marking, inheriting its properties and behaviors. } /** * Represents a weight marking associated with a vertex in a graph. * Extends {@link VertexMarking}. */ class VertexWeightMarking extends VertexMarking { // ATTRIBUTE private int weight; // KONSTRUKTOREN /** * Constructs a vertex weight marking with the specified weight. * * @param weight The weight value associated with the vertex. */ VertexWeightMarking(int weight) { this.weight = weight; } // GET-ER /** * Retrieves the weight associated with this vertex weight marking. * * @return The weight of the vertex marking. */ public int getWeight() { return this.weight; } // SET-ER /** * Sets the weight associated with this vertex weight marking. * * @param weight The new weight value to set. */ public void setWeight(int weight) { this.weight = weight; } }