public ArestaNaoDirigida(Vertice vi, Vertice vj)
     : base(vi, vj)
 {
     vi.Arestas.Add(this);
     vj.Arestas.Add(this);
 }
 public ArestaNaoDirigida(Vertice vi, Vertice vj, int custo)
     : base(vi, vj, custo)
 {
     vi.Arestas.Add(this);
     vj.Arestas.Add(this);
 }
 public Aresta(Vertice vi, Vertice vj, int custo)
 {
     Vi    = vi;
     Vj    = vj;
     Custo = custo;
 }
 public Aresta(Vertice vi, Vertice vj)
 {
     Vi    = vi;
     Vj    = vj;
     Custo = 0;
 }
Example #5
0
 private void AdicionarVertice(Vertice v)
 {
     Vertices[v.Id] = v;
 }