add algorithms.graph.longest_path_weighted_nodes()