Added range class and areConnected to graph (start of Prim's Algorithm)