Gave up for now, tried to solve the task more or less functionally/mathematically, but it didn't work out. Related: - [Calculus on finite weighted graphs](https://en.wikipedia.org/wiki/Calculus_on_finite_weighted_graphs) - ![notes](whiteboard_notes.jpeg)