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;
 }
Ejemplo n.º 2
0
 public static String inSeed(ITree t) {
   return ITree.OPEN_SYMBOL + t.getLabel() + ITree.SEPARATE_SYMBOL + t.getType();
 }
Ejemplo n.º 3
0
 public static String outSeed(ITree t) {
   return t.getType() + ITree.SEPARATE_SYMBOL + t.getLabel() + ITree.CLOSE_SYMBOL;
 }
Ejemplo n.º 4
0
 public static int standardHash(ITree t) {
   return Integer.hashCode(t.getType()) + HashUtils.BASE * t.getLabel().hashCode();
 }