Exemple #1
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";
 }
Exemple #2
0
 public override bool compatibleGraphe(Graphe graphe)
 {
     // TODO Auto-generated method stub
     return (graphe is Molecule);
 }
Exemple #3
0
 public override bool compatibleGraphe(Graphe graphe)
 {
     return (graphe is Reseau);
 }