Traversal of graphs, minimum spanning tree, single source shortest path