Пример #1
0
 public void MostrarGrafo()
 {
     if (aVertice != null)
     {
         for (int i = 1; i <= aLista.NroElementos(); i++)
         {
             Console.WriteLine(aVertice.nombre + "==> " + aLista.IesimoElemento(i) + "Con peso==> (" + aLista.IesimoElementoPeso(i) + " )");
             aSiguiente.MostrarGrafo();
         }
     }
 }
Пример #2
0
 public int NroElementos()
 {
     if (aElemento != null)
     {
         return(1 + aSublista.NroElementos());
     }
     else
     {
         return(0);
     }
 }