Added a new re-usable visitor for visiting all relationships.