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