I am working on to get all the possible paths starting from a Node 'A' and ending at the same node. The graph is a directed graph ( i.e each node is connected to at least one node ).
The constraints are : I can visit a node exactly once, except for , ( of course the starting node).
The Problem : I tried to implement this using graphraverse function in MATLAB , but it gives me only one such way. Any algorithm or logic that can be implemented in C, java would work.
I would be glad if someone can give me any pointers to it .
Note: I don't want the shortest path, I want a set of possible paths.