20 lines
349 B
Java
20 lines
349 B
Java
package graph;
|
|
|
|
public abstract class EdgeMarking extends Marking{
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|