code: public void getPredecessor(DBIDRef id, DBIDVar out) {
      if(predecessor == null) {
        out.unset();
        return;
      }
      predecessor.assignVar(id, out);
    }
docs: Get the predecessor.
  
  @param id Current id.
  @param out Output variable to store the predecessor.