ProjektGraph/graph/VertexMarking.java
i23007 ebd1173cbc Tests with marking of Edges and Vertexes
Adding Visualisation of Edge weight
and Vertex name
fixed AStar
2024-07-06 20:43:33 +02:00

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;
}
}