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) {
		/*
		 * o is the same vertex if: * o is a vertex instance * o has the same
		 * label as this vertex
		 */

		return (o instanceof Vertex && ((Vertex) o).getLabel().equals(mLabel));
	}
}

@@ -72,16 +72,99 @@
 abel;%0A%0A%09
+@Override%0A    public int hashCode() %7B%0A        return mLabel.hashCode();%0A    %7D%0A%0A    
 /**%0A%09 * 
@@ -616,10 +616,12 @@
 l));%0A%09%7D%0A
+%09%0A
 %7D%0A

add the override for hashcode on a vertex