Пример #1
0
 /**
  * @return bool
  * @param aret
  */
 public bool insererAret(General.Aret aret)
 {
     if (this.compatibleAret(aret) && aret.compatibleSommet(this)
         && graphe == aret.getGraphe()) {
     this.arets.Add(aret);
     return true;
     }
     return false;
 }
Пример #2
0
 /**
  * @return bool
  * @param graphe
  */
 public String setGraphe(General.Graphe graphe)
 {
     if (this.compatibleGraphe(graphe) && graphe.compatibleSommet(this)
         && this.IsGrapheNull()) {
     this.graphe = graphe;
     graphe.sommets.Add(this);
     return "OK \n " + this + "\n----------\n";
     }
     return "Non OK \n " + this +"\n"+ graphe + "\n----------\n";
 }