Implemented find_edge() (get_edge) function.