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(); } } }
public int NroElementos() { if (aElemento != null) { return(1 + aSublista.NroElementos()); } else { return(0); } }