public void Ajouter_Arc(Arc a) { this.ListeArcs.add(a); if (a.Origine != null) { a.Origine.ajouter_arc('S', a); } if (a.Des != null) { a.Des.ajouter_arc('E', a); } }
public void supp_arc(int cod) { Arc a = this.Rech_Arc(cod); if (a != null) { if (a.Origine != null) { a.Origine.Supp_arc(cod); } if (a.Des != null) { a.Des.Supp_arc(cod); } this.ListeArcs.remove(a); } }