Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/12/16 22:34:22 (8 years ago)
Author:
bburlacu
Message:

#1772: Fix bug in tree matching with wildcards (used by the genealogy graph view instead of the query match) and improved subtree selection and matching functionality in the genealogy graph view.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeMatching.cs

    r13875 r13892  
    4242      // we can have multiple matches of the same node
    4343
    44       return root.IterateNodesBreadth().Where(n => n.GetLength() >= fragmentLength && Match(n, subtree, comp) == fragmentLength);
     44      return root.IterateNodesBreadth().Where(n => n.GetLength() >= fragmentLength && Match(n, subtree, comp) >= fragmentLength);
    4545    }
    4646
     
    5656      // AnySubtree wildcards mach everything
    5757      if (a is AnySubtree)
    58         return b.GetLength();
     58        return 1;
    5959      if (b is AnySubtree)
    60         return a.GetLength();
     60        return 1;
    6161
    6262      int m = a.SubtreeCount;
Note: See TracChangeset for help on using the changeset viewer.