function eOnext = Onext(edge_ref)
global all_edges;

e = all_edges( edge_ref(1) );

eOnext = e.next{edge_ref(2)};

