scientific-programming-exer.../exam/ex01/main.py

20 lines
442 B
Python
Raw Normal View History

2019-02-02 10:18:57 +00:00
import logging
logging.basicConfig(level=logging.DEBUG)
from cache import get_cache
from receive import receive_links, receive_link_graph
2019-02-02 15:06:57 +00:00
from dijkstra import prepare_dijkstra, dijkstra
cache = get_cache("./cache/", "Angela_Merkel")
receive_link_graph("Angela_Merkel", cache, 2)
cursor = cache.cursor()
cursor.execute("SELECT COUNT(source) FROM links")
print(cursor.fetchall())
prepare_dijkstra(cache)
dijkstra("Angela_Merkel", cache)