childCount = new int[nodes];
nodeChildren = new int[nodes][];
for (int i = 0; i < nodes; i++) {
vInt.readFields(in);
attribute[i] = vInt.get();
vLong.readFields(in);
nodeCount[i] = vLong.get();
vInt.readFields(in);
childCount[i] = vInt.get();
nodeChildren[i] = new int[childCount[i]];
for (int j = 0, k = childCount[i]; j < k; j++) {