/* * Created on 10/06/2003 */ package graph; /** * @author André Santanchè */ public class Edge { Vertex origin, destination; int weight = 0; public Edge(Vertex origin, Vertex destination, int weight) { this.origin = origin; this.destination = destination; this.weight = weight; } public Vertex getOrigin() { return origin; } public Vertex getDestination() { return destination; } public int getWeight() { return weight; } }