added weights to the edges, also refactored add_edge, edge, dfs, bfs methods. Needing tests for newly added stuff
added weights to the edges, also refactored add_edge, edge, dfs, bfs methods. Needing tests for newly added stuff

han8909227/data-structures