Beispiel #1
0
 /**
  * Create a predicate to match components for the provided query (grouping) and target (connected
  * components).
  *
  * @param grouping query grouping
  * @param cc connected component of the target
  */
 public ComponentGrouping(int[] grouping, ConnectedComponents cc) {
   this.queryComponents = grouping;
   this.cc = cc;
   this.targetComponents = cc != null ? cc.components() : null;
 }