@@ -0,0 +1,692 @@
+package dijkstras;%0A%0A/*%0A%09This class defines a vertex for Dijkstra's algorithm%0A*/%0A%0Aclass Vertex%7B%0A%0A%09private int name = -1;%09%09%09%09// Vertex name%0A%09private int parent = -1;%09%09%09// Parent vertex' name%0A%09private int distance = 999999;%09%09// Distance of vertex from source%0A%0A%0A%09// Constructs vertex with specified name%0A%0A%09public Vertex(int name)%7B%0A%0A%09%09this.name = name;%0A%09%7D%0A%0A%0A%09// Returns name%0A%0A%09public int getName()%7B%0A%09%09return name;%0A%09%7D%09%0A%0A%0A%09// Sets parent%0A%0A%09public void setParent(int p)%7B%0A%09%09parent = p;%09%09%0A%09%7D%0A%0A%0A%09// Gets parent%0A%0A%09public int getParent()%7B%0A%09%09return parent;%0A%09%7D%0A%0A%0A%09// Sets distance%0A%0A%09public void setDistance(int d)%7B%0A%09%09distance = d;%0A%09%7D%0A%0A%0A%09// Gets distance%0A%0A%09public int getDistance()%7B%0A%09%09return distance;%0A%09%7D%0A%0A%7D%09

Add vertex class for Dijkstras algorithm