private static int GetDawgNodeId(DawgNode node) { var sb = new StringBuilder(); foreach (var node2 in node.DescendantsAndSelf()) { sb.Append(node2.Char); sb.Append(node2.Eow ? '1' : '0'); } return((int)FnvHash.GetHash(sb.ToString())); }
private static int GetDawgNodeId(DawgNode node) { var sb = new StringBuilder(); foreach (var node2 in node.DescendantsAndSelf()) { sb.Append(node2.Char); sb.Append(node2.Eow ? '1' : '0'); } return (int)FnvHash.GetHash(sb.ToString()); }