GraphArc - return weight; } public void...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/** * @(#)GraphArc.java * * * @author Alexandros Zerzelidis * @version 4.00 2009/5/20 */ public class GraphArc { p public GraphArc(GraphVertex end, Object w) { endVertex = end; weight = w; } public GraphVertex getEndVertex() { return endVertex; } public Object getWeight() {
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: return weight; } public void setEndVertex(GraphVertex vertex) { endVertex = vertex; } public void setWeight(Object w) { weight = w; } // PRIVATE INSTANCE FIELDS private GraphVertex endVertex; private Object weight; }...
View Full Document

Ask a homework question - tutors are online