code: public String getRelation(int position) {
          if (position < 0 || position >= path.size())
              throw new IndexOutOfBoundsException("Invalid relation: " +position);
          DependencyRelation r = path.get(position);
          return r.relation();
      }
docs: {@inheritDoc}