コード例 #1
0
ファイル: Sommet.cs プロジェクト: LRBH10/my-Project
 /**
  * @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
ファイル: Sommet.cs プロジェクト: LRBH10/my-Project
 /**
  * @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";
 }