1
0
Fork 0

Compare commits

..

2 commits

Author SHA1 Message Date
Yanis Mahé
52a8945a91 Added constructor for label and changed coutRealise to double 2026-04-16 09:47:29 +02:00
Yanis Mahé
f80f2a348c Added getCoutRealie for Label 2026-04-16 09:38:23 +02:00

View file

@ -9,9 +9,15 @@ public class Label {
private Boolean marque;
private int coutRealise;
private double coutRealise;
private Arc pere;
private Arc pere;
public Label(Node sommetCourant) {
this.sommetCourant = sommetCourant;
this.marque = false;
this.coutRealise = Double.POSITIVE_INFINITY;
}
public Node getSommetCourant() {
return sommetCourant;
@ -24,10 +30,13 @@ public class Label {
public Arc getPere() {
return pere;
}
public int getCost() {
public double getCoutRealise() {
return coutRealise;
}
public double getCost() {
return coutRealise;
}
}