praca_magisterska/main.py

12 lines
343 B
Python

import tools.file_service as op_file
import algorithms.dijkstra as dijkstra
if __name__ == '__main__':
g = op_file.read_graph_from_file("dataset/deezer_clean_data/HR_edgeswith_weight.csv", has_weight=True)
v = dict()
for i in g.keys():
v[i[0]] = []
v[i[1]] = []
print(dijkstra.dijkstra_algorithm(g, v, 0, 4))