function rotrnext = RotRnext(edge_ref)
global all_edges;

e = all_edges( edge_ref(1) );

rotrnext = e.next{mod4(edge_ref(2)+1)};

