Hey,
I need to find all the available paths from a root object.
Since in
java objects can have references in the two directions, we are talking on a graph.
I want to get a reference to a class type and return a list of all the available paths from this object type.
If I have a reference from A->B->C->D and also A->D I need to have the two paths.
Performance is not important because this process run in offline. Simplicity is much important.
Can you please advice on the suitable algorithm for this?
Thank you