functionality of mining the graph has been added