ProjektGraph/graph/VertexMarking.java

20 lines
358 B
Java
Raw Normal View History

2024-06-15 14:48:28 +00:00
package graph;
public abstract class VertexMarking extends Marking {
}
class VertexWeightMarking extends VertexMarking{
private int weight;
VertexWeightMarking(int weight){
this.weight = weight;
}
public void setWeight(int weight){
this.weight=weight;
}
public int getWeight(){
return this.weight;
}
}