Python Program To Implement Graph Algorithms