using the cluster to get all dijkstra values for M<=10