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);
 }
예제 #3
0
 public Aresta(Vertice vi, Vertice vj, int custo)
 {
     Vi    = vi;
     Vj    = vj;
     Custo = custo;
 }
예제 #4
0
 public Aresta(Vertice vi, Vertice vj)
 {
     Vi    = vi;
     Vj    = vj;
     Custo = 0;
 }
예제 #5
0
파일: Grafo.cs 프로젝트: fersoftware/Hlac
 private void AdicionarVertice(Vertice v)
 {
     Vertices[v.Id] = v;
 }