public int impact(MultiMappingStore m) {
   int impact = 0;
   for (ITree src : m.getSrcs()) {
     int pSize = src.getParents().size();
     if (pSize > impact) impact = pSize;
   }
   for (ITree src : m.getDsts()) {
     int pSize = src.getParents().size();
     if (pSize > impact) impact = pSize;
   }
   return impact;
 }
Example #2
0
 public static String inSeed(ITree t) {
   return ITree.OPEN_SYMBOL + t.getLabel() + ITree.SEPARATE_SYMBOL + t.getType();
 }
Example #3
0
 public static String outSeed(ITree t) {
   return t.getType() + ITree.SEPARATE_SYMBOL + t.getLabel() + ITree.CLOSE_SYMBOL;
 }
Example #4
0
 public static int standardHash(ITree t) {
   return Integer.hashCode(t.getType()) + HashUtils.BASE * t.getLabel().hashCode();
 }