* @param numShards number of shards
* @param weightByPagerank whether to weight sampling by pagerank
* @throws IOException
*/
public FriendsOfFriends(String baseFilename, int numShards, boolean weightByPagerank) throws IOException {
this.queryEngine = new VertexQuery(baseFilename, numShards);
this.baseFilename = baseFilename;
this.weightByPagerank = weightByPagerank;
this.numShards = numShards;
this.translator = VertexIdTranslate.fromFile(new File(ChiFilenames.getVertexTranslateDefFile(baseFilename, numShards)));