Feature Request: Is it possible to support the rank attribute in the twopi layout?

I have three layers of nodes arranged on three concentric rings, but some third-layer nodes are directly connected to the first layer, causing Graphviz to place them in the second layer.

Currently, I can work around this issue by adding an invisible node with zero size, but this results in polyline connections.

I hope to be able to specify the rank of nodes in the twopi layout.

There is no such feature, but I’m willing to try my hand at this when I can make time.

Interesting. I didn’t even notice that there was such a tool as gvpr
I will try to study it in depth
As I understand it, this configuration of rank actually configures invisible intermediate nodes and intermediate connections? It seems that this logic can handle it directly without this gvpr. I’ll give it a try

I tried this, but not sure it’s correct.