Thank you for this hint.
The function seems to work very well.
But since I use this function to reverse edges, some edges will disappear if I collapse+discollapse groups.
This seems to be a bug. Then saving the file will cause a graph, in which only the edges are repositioned, but nothing else thanged (even not the edge direction).
So I can't use the function ye(t/d). ;-)
Shall I provide more detailed information to reproduce this behaviour?
Thank you.