Can you please suggest possible approaches for the following problem:
Find a path through graph vertices so that the distance (sum of edges weights) between two vertex $i$ occurrences would be no more than $D_i$. It is obviously infinite, so I want to have a generator for this path.
Thanks in advance.