Added presentation of implementaions.
This commit is contained in:
parent
85995b3d16
commit
8c680e235e
BIN
Documentation/Referat___praca_magisterska_2.pdf
Normal file
BIN
Documentation/Referat___praca_magisterska_2.pdf
Normal file
Binary file not shown.
@ -68,7 +68,8 @@ if __name__ == "__main__":
|
||||
(3, 1): 4,
|
||||
(6, 2): 3,
|
||||
(8, 6): 8,
|
||||
(8, 3): 2
|
||||
(8, 3): 2,
|
||||
(9, 1): 8
|
||||
}
|
||||
|
||||
v = dict()
|
||||
|
@ -139,7 +139,8 @@ if __name__ == "__main__":
|
||||
(3, 1): 4,
|
||||
(6, 2): 3,
|
||||
(8, 6): 8,
|
||||
(8, 3): 2
|
||||
(8, 3): 2,
|
||||
(9, 1): 8
|
||||
}
|
||||
|
||||
v = dict()
|
||||
@ -147,4 +148,4 @@ if __name__ == "__main__":
|
||||
v[i[0]] = []
|
||||
v[i[1]] = []
|
||||
|
||||
print(bidirectional_algorithm(g, v, 7, 8, heuristic_cost))
|
||||
print(bidirectional_algorithm(g, v, 7, 10, heuristic_cost))
|
||||
|
Can't render this file because it is too large.
|
2
main.py
2
main.py
@ -4,7 +4,7 @@ import algorithms.a_star as a_star
|
||||
import algorithms.bidirectional as bidirectional
|
||||
|
||||
if __name__ == '__main__':
|
||||
g = op_file.read_graph_from_file("dataset/deezer_clean_data/HR_edgeswith_weight.csv", has_weight=True)
|
||||
g = op_file.read_graph_from_file("dataset/deezer_clean_data/HR_edges_with_weight.csv", has_weight=True)
|
||||
v = dict()
|
||||
for i in g.keys():
|
||||
v[i[0]] = []
|
||||
|
Loading…
Reference in New Issue
Block a user