fixes a bug that lead to not reading the plot key correctly from the config
changes the distr used in motifs from int to long
adds APSP heuristic that uses SSSP from k nodes