Changeset 13482 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching
- Timestamp:
- 12/17/15 20:43:07 (9 years ago)
- Location:
- branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic
- Property svn:mergeinfo changed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/QueryMatch.cs
r12988 r13482 80 80 81 81 bool equals = Comparer.Equals(a.Node, b.Node); 82 83 82 if (equals && MatchParents) { 84 83 var pa = a.Parent; … … 86 85 if (pa == null && pb == null) 87 86 return true; 88 if (pa != null && pb != null)89 return pa.Level == pb.Level && Comparer.Equals(pa.Node, pb.Node);90 return false;87 if (pa == null || pb == null) 88 return false; 89 return pa.Level == pb.Level && Comparer.Equals(pa.Node, pb.Node); 91 90 } 92 91 return equals;
Note: See TracChangeset
for help on using the changeset viewer.