To search minimum spanning tree in weighted directed graph.