class GTreeNode extends CoreGTreeNode implements Comparable<GTreeNode> {

	public int getIndexInParent() {
		GTreeNode parent = getParent();
		if (parent == null) {
			return -1;
		}
		return parent.getIndexOfChild(this);
	}

}