Finally implemented clean iterators for Graph class: used those iterators to implement MST and SPT.