Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Grafo;
- /**
- *
- * @author Bruno Duru
- */
- public class Aresta {
- int peso;
- No estadoFim;
- private boolean visitado;
- public Aresta(int peso, No estadoFim) {
- this.peso = peso;
- this.estadoFim = estadoFim;
- this.visitado = false;
- }
- public No getEstadoFim() {
- return estadoFim;
- }
- public int getPeso() {
- return peso;
- }
- public boolean isVisitado() {
- return visitado;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement