public static double ComputeSimilarity(ISymbolicExpressionTreeNode t1, ISymbolicExpressionTreeNode t2, bool simplify = false, bool strict = false) { var lh = t1.Hash(simplify, strict); var rh = t2.Hash(simplify, strict); Array.Sort(lh); Array.Sort(rh); return(ComputeSimilarity(lh, rh)); }
public static ulong ComputeHash(this ISymbolicExpressionTreeNode treeNode, bool simplify = false, bool strict = false) { return(treeNode.Hash(simplify, strict).Last()); }