add a method to give in different lists the nodes and the edges for the dfs and added the code for displaying the shortest path, however it does not work so far