- Timestamp:
- 07/23/14 16:00:53 (10 years ago)
- Location:
- branches/HeuristicLab.BottomUpTreeDistance
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BottomUpTreeDistance/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SimilarityCalculators/BottomUpSimilarityCalculator.cs
r11219 r11220 177 177 if (childrenCount[p] == 0) 178 178 queue.Enqueue(p); 179 } ;179 } 180 180 181 181 return nodesToVertices; -
branches/HeuristicLab.BottomUpTreeDistance/HeuristicLab.Tests/BottomUpSimilarityCalculatorTest.cs
r11219 r11220 33 33 TestMatchedNodes("(+ 1 2)", "(+ 2 1)", 5); 34 34 TestMatchedNodes("(- 2 1)", "(- 1 2)", 2); 35 36 TestMatchedNodes("(* (variable 1 X1) (variable 1 X2))", "(* (+ (variable 1 X1) 1) (variable 1 X2))", 2); 37 38 TestMatchedNodes("(+ (variable 1 a) (variable 1 b))", "(+ (variable 1 a) (variable 1 a))", 1); 39 TestMatchedNodes("(+ (+ (variable 1 a) (variable 1 b)) (variable 1 b))", "(+ (* (+ (variable 1 a) (variable 1 b)) (variable 1 b)) (+ (+ (variable 1 a) (variable 1 b)) (variable 1 b)))", 5); 35 40 36 41 TestMatchedNodes(
Note: See TracChangeset
for help on using the changeset viewer.