/**
* Read the edges into memory.
*/
BufferedDataInputStream in = new BufferedDataInputStream(new FileInputStream(shovelFile));
for(int i=0; i<shoveled.length; i++) {
long l = in.readLong();
int from = getFirst(l);
int to = getSecond(l);
in.readFully(valueTemplate);
int newFrom = finalIdTranslate.forward(preIdTranslate.backward(from));