Implemented the functionalities and models in the graph module