calculate k-shortest paths in a graph using igraph