Defined e GenericGraph as the new exchange data structure.
Refactoring and implemented the use of GenericGraph.