Reverse a graph, represented as Adjacency List
1-A graph(adjacency list) can be generated using GraphGenerator class, it is generated in a file name digraph.txt
2-Use initialzeGraph method to load the generated graph from file
3-Call the reverseGraph method to reverse the graph
4-Call printAdjacencyList method to print the graph as adjacency list
masroorhussainv / reverse-a-graph Goto Github PK
View Code? Open in Web Editor NEWReverse a graph, represented as Adjacency List