2024-06-15 14:48:28 +00:00
|
|
|
package graph;
|
|
|
|
|
|
|
|
public abstract class EdgeMarking extends Marking{
|
|
|
|
}
|
2024-07-06 18:37:42 +00:00
|
|
|
|
|
|
|
class EdgeWeightMarking extends EdgeMarking{
|
|
|
|
private int weight;
|
|
|
|
|
|
|
|
EdgeWeightMarking(int weight){
|
|
|
|
this.weight = weight;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setWeight(int weight){
|
|
|
|
this.weight=weight;
|
|
|
|
}
|
|
|
|
public int getWeight(){
|
|
|
|
return this.weight;
|
|
|
|
}
|
|
|
|
}
|