Beispiel #1
0
 public Arista(Vertice <T> origen, Vertice <T> destino, int distancia)
 {
     this.origen    = origen;
     this.destino   = destino;
     this.distancia = distancia;
 }
Beispiel #2
0
 public void agregarVertice(Vertice <T> v)
 {
     vertices.Add(v);
     raices.Add(v.Info, v.Info);
 }
Beispiel #3
0
 //Constructor
 public Arista(T origen, T destino, int distancia)
 {
     this.origen    = new Vertice <T>(origen);
     this.destino   = new Vertice <T>(destino);
     this.distancia = distancia;
 }
Beispiel #4
0
 public void agregarArista(Vertice <T> v1, Vertice <T> v2, int ponderacion)
 {
     aristas.Add(new Arista <T>(v1, v2, ponderacion));
 }