Exemplo n.º 1
0
 public Grafo()
 {
     matrizAdyacencia    = new Arco[Informacion.tam, Informacion.tam];
     referenciaUbicacion = new string[Informacion.tam];
     for (int i = 0; i < Informacion.tam; i++)
     {
         for (int j = 0; j < Informacion.tam; j++)
         {
             var aux = new Arco();
             matrizAdyacencia[i, j] = aux;
         }
     }
 }
Exemplo n.º 2
0
 public bool InsertarArco(int fila, int columna, Arco arco)
 {
     matrizAdyacencia[fila, columna] = arco;
     return(true);
 }