Exemple #1
0
        /**
         * @return bool
         * @param graphe
         */
        public String setGraphe(General.Graphe graphe)
        {
            if (this.compatibleGraphe(graphe) && graphe.compatibleAret(this)
                && this.IsGrapheNull() && sommet1 != null) {
            this.graphe = graphe;
            graphe.arets.Add(this);
            return "OK \n " + this + "\n----------\n";
            }

            return "Non OK \n" + this + "\n" + graphe + "\n----------\n";
        }
Exemple #2
0
 /**
  * @return bool
  * @param sommet1
  */
 bool VerifyinsererSommet(General.Sommet sommet)
 {
     if (this.compatibleSommet(sommet) && sommet.compatibleAret(this))
     return true;
     return false;
 }