public int CreateRootNode()
{
childCount[nodes] = 0;
next[nodes] = -1;
parent[nodes] = 0;
attribute[nodes] = -1;
nodeCount[nodes] = 0;
if (nodeChildren[nodes] == null)
{
nodeChildren[nodes] = new int[DEFAULT_CHILDREN_INITIAL_SIZE];
}
return nodes++;
}