GraphVertex - arcList = arc; } public void setWeight(Object...

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

View Full Document Right Arrow Icon
/** * @(#)GraphVertex.java * * * @author Alexandros Zerzelidis * @version 4.00 2009/5/20 */ public class GraphVertex { p public GraphVertex(Object w) { arcList = new SimpleLinkedList(); weight = w; marked = false; } public SimpleLinkedList getArcList() { return arcList; } public Object getWeight() { return weight; } public void setArcList(SimpleLinkedList arc) {
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: arcList = arc; } public void setWeight(Object w) { weight = w; } public boolean isMarked() { return marked; } public void mark() { marked = true; } public void unmark() { marked = false; } // PRIVATE INSTANCE FIELDS private SimpleLinkedList arcList; private Object weight; private boolean marked; }...
View Full Document

Ask a homework question - tutors are online