for (Node node : graph.getNodes()) {
int id = node.getStoreId();
if (id >= nodes.length || nodes[id] == null) {
growNodes(id);
NodeModel model = nodeModeler.initModel(node);
octree.addNode(model);
nodes[id] = model;
addedNodes++;
}
}
for (int i = 0; i < edges.length; i++) {