create full adjacency matrix with dijkstra - first, untested version