20 lines
358 B
Java
20 lines
358 B
Java
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;
|
|
}
|
|
}
|