String[] tokens = SEPARATOR.split(line.toString());
int rowIndex = vertexIDsToIndex.get(Integer.parseInt(tokens[0]));
int columnIndex = vertexIDsToIndex.get(Integer.parseInt(tokens[1]));
Vector partialTransitionMatrixRow = new SequentialAccessSparseVector(numVertices, 1);
row.set(rowIndex);
partialTransitionMatrixRow.setQuick(columnIndex, 1);
ctx.write(row, new VectorWritable(partialTransitionMatrixRow));
if (symmetric && rowIndex != columnIndex) {
partialTransitionMatrixRow = new SequentialAccessSparseVector(numVertices, 1);
row.set(columnIndex);
partialTransitionMatrixRow.setQuick(rowIndex, 1);
ctx.write(row, new VectorWritable(partialTransitionMatrixRow));
}
}