public int getParent(int ordinal) throws IOException {ensureOpen();Objects.checkIndex(ordinal, nextID);int[] parents = getTaxoArrays().parents();assert ordinal < parents.length : "requested ordinal (" + ordinal + "); parents.length (" + parents.length + ") !";return parents[ordinal];}

public virtual int GetParent(int ordinal){EnsureOpen();if (ordinal >= nextID){throw new System.IndexOutOfRangeException("requested ordinal is bigger than the largest ordinal in the taxonomy");}int[] parents = GetTaxoArrays().Parents;Debug.Assert(ordinal < parents.Length, "requested ordinal (" + ordinal + "); parents.length (" + parents.Length + ") !");return parents[ordinal];}
