Propagate value through a graph

Here is my question where I am propagating distance through the graph, I was wondering if it is possible to do when the graph has cycles, i.e., traveling the same node multiple time then is it possible to assign current distance traveled at each instance of that node?

• In the linked paper they write "The number of dummy vertices associated with each AFS (alternative fuel station), $n_f$, is set to the number of times the associated $v_f$ can be visited. $n_f$ should be set as small as possible so as to reduce the network size, but large enough to not restrict multiple beneficial visits." – Sune Mar 16 '20 at 8:56