Ejemplo n.º 1
0
        private void tbSommetArticulation_Click(object sender, EventArgs e)
        {
            List <Sommet> listeSommets = Fonctions.SommetArticulation(graphe);
            string        text         = "Les différents sommet d'articulations sont : " + string.Join(", ", listeSommets.SelectMany(t => t.Libelle).ToList());

            MessageBox.Show(text);
        }
Ejemplo n.º 2
0
 public Sommet(string Libelle, bool aleatoire = false)
 {
     this.Libelle = Libelle;
     Marque       = EnumMarque.NonMarque;
     if (aleatoire)
     {
         Position = new Point(Fonctions.NombreAleatoire(1000), Fonctions.NombreAleatoire(1000));
     }
 }
Ejemplo n.º 3
0
 private void btConnex_Click(object sender, EventArgs e)
 {
     if (Fonctions.TestConnexite(graphe))
     {
         MessageBox.Show("Connexe !");
     }
     else
     {
         MessageBox.Show("Pas connexe !");
     }
 }