corrected bug in scgl_vertex_foreach_edge