@@ -0,0 +1,751 @@
+package prims;%0A%0A/*%0A%09This class defines vertex for Prims Minimum Spanning Tree algorithm.%0A*/%0A%0Aclass Vertex%7B%0A%0A%09private int name = -1;%09%09%09%09%09// Vertex name%0A%09private int parent = -1;%09%09%09// Parent in MST%0A%09private int key = 99999999;%09%09%09// Key //Distance to MST subset%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// Constructs Vertex with default values%0A%0A%09public Vertex()%7B%0A%09%09// Do Nothing.%0A%09%7D%0A%0A%0A%09// Returns name%0A%0A%09public int getName()%7B%0A%09%09return name;%0A%09%7D%0A%0A%0A%09// Sets parent%0A%0A%09public void setParent(int p)%7B%0A%09%09parent = p;%0A%09%7D%0A%0A%0A%09// Returns parent%0A%0A%09public int getParent()%7B%0A%09%09return parent;%0A%09%7D%0A%0A%0A%09// Sets Key%0A%0A%09public void setKey(int k)%7B%0A%09%09key = k;%0A%09%7D%0A%0A%0A%09// Returns key%0A%0A%09public int getKey()%7B%0A%09%09return key;%0A%09%7D%0A%0A%0A%0A%7D

Add vertex class for prims