public void SetNoeud_Parent(GenericNode g) { ParentNode = g; g.Enfants.Add(this); }
protected double TotalCost; //coût total (g+h) #endregion Fields #region Constructors public GenericNode(string nom) { Name = nom; ParentNode = null; Enfants = new List<GenericNode>(); }
// Méthodes abstrates, donc à surcharger obligatoirement avec override dans une classe fille public abstract double GetArcCost(GenericNode N2);
public void Supprime_Liens_Parent() { if (ParentNode == null) return; ParentNode.Enfants.Remove(this); ParentNode = null; }