18 lines
311 B
Java
18 lines
311 B
Java
package graph;
|
|
|
|
public class EdgeWeightMarking extends EdgeMarking {
|
|
private int weight;
|
|
|
|
public EdgeWeightMarking(int weight){
|
|
this.weight = weight;
|
|
}
|
|
|
|
public void setWeight(int weight){
|
|
this.weight=weight;
|
|
}
|
|
public int getWeight(){
|
|
return this.weight;
|
|
}
|
|
}
|
|
|