/Reverse-a-Graph

Reverse a graph, represented as Adjacency List

Primary LanguageJava

Reverse-a-Graph

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