Advertisement
Guest User

adsfas

a guest
Oct 1st, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. package Grafo;
  2.  
  3. /**
  4.  *
  5.  * @author Bruno Duru
  6.  */
  7. public class Aresta {
  8.     int peso;
  9.     No estadoFim;
  10.     private boolean visitado;
  11.  
  12.     public Aresta(int peso, No estadoFim) {
  13.         this.peso = peso;
  14.         this.estadoFim = estadoFim;
  15.         this.visitado = false;
  16.    }
  17.  
  18.     public No getEstadoFim() {
  19.         return estadoFim;
  20.     }
  21.  
  22.  
  23.     public int getPeso() {
  24.         return peso;
  25.     }
  26.      
  27.     public boolean isVisitado() {
  28.         return visitado;
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement