public class Edge { double weight; Vertex he; Vertex she; int him; //null constructor public Edge() { weight = 0; } //construct Edge with he Vertex x, she Vertex y, weight z public Edge(Vertex y, Vertex z) { he = y; she = z; } public Edge(Vertex y,int x){ he=y; him=x; } //setters and getters public double getWeight() { return weight; } public Vertex getShe() { return she; } public Vertex getHe() { return he; } public int getHim(){ return him; } }