I am working on a program that involves finding the longest sequence in a unweighted directed acyclic graph. I don't just need the length but also the sequence, covering the possibility of multiple sequences of the same longest length. I have tried out with DFS and Floyd-Warshall's algorithm, but have been unsuccessful so far. Could anyone give some idea as to how this question could be approached?
Thanks!