finished implementation of NeighbourhoodGraph

* implemented distance method (Floyd-Warshall)
* added NotConnectedException