Implemented BFS and most of the spanning tree algorithm. Need to fix spanning tree method to work with edges.