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

kjør

parent 3cb51c40
No related branches found
No related tags found
No related merge requests found
from queue import PriorityQueue
with open('./noder.txt') as file:
fil = file.read()
class results(object):
def __init__(self, node, total_time, visited, in_que, prev):
self.node = node
self.total_time = total_time
self.visited = visited
self.in_que = in_que
self.prev = prev
arr = PriorityQueue()
for i in range(10):
arr.put((i ,results(i*10, i, False, True, 0)))
while not arr.empty():
b = arr.get()
print(b)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment