traversal methods need to be updated in the graph to find the best past now that edges have weight
traversal methods need to be updated in the graph to find the best past now that edges have weight