All paths of length L from node n using python
Given a graph G, a node n and a length L, I'd like to collect all (non-cyclic) paths of length L that depart from n. Do you have any idea on how to approach this? By now, I my graph is a networkx.Graph instance, but I do not really care if e.g. igraph is recommended. Thanks a lot! I would just like to expand on Lance Helsten's excellent answer: The depth-limited search searches for a particular node within a certain depth (what you're calling the length L), and stops when it finds it. If you will take a look at the pseudocode in the wiki link in his answer, you'll understand this: DLS(node,