Changeset 13892 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic
- Timestamp:
- 06/12/16 22:34:22 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeMatching.cs
r13875 r13892 42 42 // we can have multiple matches of the same node 43 43 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); 45 45 } 46 46 … … 56 56 // AnySubtree wildcards mach everything 57 57 if (a is AnySubtree) 58 return b.GetLength();58 return 1; 59 59 if (b is AnySubtree) 60 return a.GetLength();60 return 1; 61 61 62 62 int m = a.SubtreeCount;
Note: See TracChangeset
for help on using the changeset viewer.