2021-10-08 18:16:04 +02:00
|
|
|
import tools.file_service as op_file
|
2021-10-17 11:21:09 +02:00
|
|
|
import algorithms.dijkstra as dijkstra
|
2021-11-02 15:17:18 +01:00
|
|
|
import algorithms.a_star as a_star
|
|
|
|
import algorithms.bidirectional as bidirectional
|
2021-09-04 16:19:59 +02:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2021-11-15 15:01:34 +01:00
|
|
|
g = op_file.read_graph_from_file("dataset/deezer_clean_data/HR_edges_with_weight.csv", has_weight=True)
|
2021-10-17 11:21:09 +02:00
|
|
|
v = dict()
|
|
|
|
for i in g.keys():
|
|
|
|
v[i[0]] = []
|
|
|
|
v[i[1]] = []
|
|
|
|
|
2021-11-02 15:17:18 +01:00
|
|
|
# print(dijkstra.dijkstra_algorithm(g, v, 0, 4))
|
|
|
|
# print(a_star.a_star_algorithm(g, v, 0, 4))
|
|
|
|
# print(bidirectional.bidirectional_algorithm(g, v, 0, 4))
|