Did you ever make any progress with this? I have experimented with doing this as well with no luck. It’s unclear from your post what exactly is wrong with your current graph. Does it work, but you’re just looking for a more robust solution? Or does it not work at all?
When I tried a similar task, I was never able to find a way to automatically generate a list of the coordinates like you placed in your code block. I was imagining that each view would require a distinct list of coordinates for the desired final destination of the view references. I tried finding the coordinates of the matchline intersections, but got nowhere close to that.
Sorry, I have no answers. Just questions and a similar goal.