Elmira/modify ray for merged graph