I have a sparse unweighted directed graph of 1000000 nodes and I would like to find all simple paths of length 5. I know there will be very few simple paths of length 5 (maybe only one).
I see from http://en.wikipedia.org/wiki/Longest_path_problem that the parameterized complexity of determining if a graph has a path of length k is O(2^k n poly(n,k))) although I don't know if these methods will also solve my problem. Unfortunately all the methods I have found look very complicated and it seems unimplemented.
Can someone explain in more or less simple words a fast solution which I can then implement?