adjOffset += 4;
} else {
n = ns;
}
ChiVertex vertex = null;
if (vid >= windowStart && vid <= windowEnd) {
vertex = vertices[vid - windowStart];
}
while (--n >= 0) {
int target = Integer.reverseBytes(adjInput.readInt());
adjOffset += 4;
if (!(target >= rangeStart && target <= rangeEnd))
throw new IllegalStateException("Target " + target + " not in range!");
if (vertex != null && !disableOutEdges) {
vertex.addOutEdge((onlyAdjacency ? -1 : blockIds[edataPtr / blocksize]), (onlyAdjacency ? -1 : edataPtr % blocksize), target);
}
if (target >= windowStart) {
if (target <= windowEnd) {
ChiVertex dstVertex = vertices[target - windowStart];
if (dstVertex != null) {
dstVertex.addInEdge((onlyAdjacency ? -1 : blockIds[edataPtr / blocksize]),
(onlyAdjacency ? -1 : edataPtr % blocksize),
vid);
}
if (vertex != null && dstVertex != null) {
dstVertex.parallelSafe = false;