Graphs, breadth-first graph search implemented. Jumpgates are instances of graph class.