Graph input test
added hashCode( ) to Location class for Graph keys