package me.teaisaweso.shared;

public class Vertex {
	private String mLabel;
	
	/**
	 * creates a vertex with a label
	 * @param label
	 */
	public Vertex(String label) {
	    mLabel = label;
	}
	
	/**
	 * gets the label of this vertex
	 * @return
	 */
	public String getLabel() {
	    return mLabel;
	}
	
	@Override
	public boolean equals(Object o) {
	    return (o instanceof Vertex && ((Vertex)o).getLabel().equals(mLabel));
	}
}

@@ -70,18 +70,17 @@
 mLabel;%0A
-%09
 %0A
+
 %09/**%0A%09 *
@@ -110,16 +110,21 @@
 a label%0A
+%09 * %0A
 %09 * @par
@@ -169,20 +169,17 @@
 bel) %7B%0A%09
-    
+%09
 mLabel =
@@ -189,18 +189,17 @@
 bel;%0A%09%7D%0A
-%09
 %0A
+
 %09/**%0A%09 *
@@ -229,16 +229,21 @@
  vertex%0A
+%09 * %0A
 %09 * @ret
@@ -276,28 +276,25 @@
 tLabel() %7B%0A%09
-    
+%09
 return mLabe
@@ -303,10 +303,9 @@
 %0A%09%7D%0A
-%09
 %0A
+
 %09@Ov
@@ -351,12 +351,119 @@
  %7B%0A%09
-    
+%09/*%0A%09%09 * o is the same vertex if: * o is a vertex instance * o has the same%0A%09%09 * label as this vertex%0A%09%09 */%0A%0A%09%09
 retu
@@ -498,16 +498,17 @@
 (Vertex)
+ 
 o).getLa

format vertex and add a comment explaining the equals overload