From fcfa9e05eb9ee3ed7f753270b1fafda5e1134c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Mah=C3=A9?= Date: Thu, 16 Apr 2026 09:36:24 +0200 Subject: [PATCH] Finishes label (?) --- .../graphs/algorithm/shortestpath/Label.java | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/Label.java b/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/Label.java index d3f6ec1..13b3b70 100644 --- a/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/Label.java +++ b/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/Label.java @@ -1,5 +1,8 @@ package org.insa.graphs.algorithm.shortestpath; +import org.insa.graphs.model.Arc; +import org.insa.graphs.model.Node; + public class Label { private Node sommetCourant; @@ -7,8 +10,24 @@ public class Label { private Boolean marque; private int coutRealise; + + private Arc pere; - public int getCost(); + public Node getSommetCourant() { + return sommetCourant; + } + + public Boolean getMarque() { + return marque; + } + + public Arc getPere() { + return pere; + } + + public int getCost() { + return coutRealise; + } }