Skip to content
Snippets Groups Projects
Commit 3cb51c40 authored by Jacob Theisen's avatar Jacob Theisen
Browse files

føkk

parent de38e5a2
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
/ov8/test_files/opg8-2021.pdf /ov8/test_files/opg8-2021.pdf
/ov9/test_files/kanter.txt /ov9/test_files/kanter.txt
/ov9/test_files/kanter.txt.1
/ov9/test_files/noder.txt /ov9/test_files/noder.txt
/ov9/test_files/noder.txt.1
/ov9/test_files/interessepkt.txt /ov9/test_files/interessepkt.txt
/ov9/test_files/interessepkt.txt.1
...@@ -32,7 +32,7 @@ class results(object): ...@@ -32,7 +32,7 @@ class results(object):
#prep nodes #prep nodes
with open('./test_files/noder.txt','r') as file: with open('./test_files/noder.txt.1','r') as file:
node_file = file.read() node_file = file.read()
node_file = node_file.split() node_file = node_file.split()
...@@ -45,7 +45,7 @@ for i in range(0, len(node_file), 3): ...@@ -45,7 +45,7 @@ for i in range(0, len(node_file), 3):
node_arr.append(nodes(int(node_file[i]), float(node_file[i+1]), float(node_file[i+2]))) node_arr.append(nodes(int(node_file[i]), float(node_file[i+1]), float(node_file[i+2])))
#prep edges #prep edges
with open('./test_files/kanter.txt','r') as file: with open('./test_files/kanter.txt.1','r') as file:
edge_file = file.read() edge_file = file.read()
edge_file = edge_file.split() edge_file = edge_file.split()
...@@ -58,7 +58,7 @@ for i in range(0, len(edge_file), 5): ...@@ -58,7 +58,7 @@ for i in range(0, len(edge_file), 5):
edge_arr.append(edges(int(edge_file[i]), int(edge_file[i+1]), int(edge_file[i+2]), int(edge_file[i+3]), int(edge_file[i+4]))) edge_arr.append(edges(int(edge_file[i]), int(edge_file[i+1]), int(edge_file[i+2]), int(edge_file[i+3]), int(edge_file[i+4])))
#prep intresting #prep intresting
with open('./test_files/interessepkt.txt','r') as file: with open('./test_files/interessepkt.txt.1','r') as file:
intresting_file = file.read() intresting_file = file.read()
intresting_file = intresting_file.split('\n') intresting_file = intresting_file.split('\n')
...@@ -163,8 +163,8 @@ def init_things(): ...@@ -163,8 +163,8 @@ def init_things():
if len(sys.argv) > 1: if len(sys.argv) > 1:
if sys.argv[1] == '-d': if sys.argv[1] == '-d':
#node_id #node_id
start = 20 start = 6368906
slutt = 400 slutt = 6789998
init_table() init_table()
queue.put(0) queue.put(0)
start_node = next(a for a in res_arr if a.node == start) start_node = next(a for a in res_arr if a.node == start)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment