pruneRooted.calculateCost(t);
pruneRooted.calculateCost(s);
ans1 = hsaEngine.computeHSA(t, s);
pruneUnrooted.calculateCost(t);
pruneUnrooted.calculateCost(s);
TIntArrayList[] tb = new TIntArrayList[3];
ans2 = hsaEngine.computeHSA(t, s, tb);
for (int i = 0; i < tb[0].size(); i++) {
System.out.println(tb[0].getQuick(i) + " -> " + tb[1].getQuick(i));