refactor vertex.setChildrenReferences method. Reword error message