Hi,
I am currently developing a program in C++ which detects path to super node from a simple node in a ring type topology. My requirement is that I need to traverse from simple node to super node and highlight all the possible paths which are going to super node. This includes ring topology in between super node and simple node.
I would like to write a recursive function to find the path. Please let me know if anyone has any idea about how to develop recursive function which detects it. I have developed the function but it fails in curtain senarios. I have attached the images for more understanding.