add edges method to walk to output traversed edges