public void ComputeEndpointCorrelation() { string fromName = fromNode.GetLabel(); string toName = toNode.GetLabel(); int stringDistance = Util.Similarity(fromName, toName); int maxLength = Math.Max(fromName.Length, toName.Length); endpointCorrelation = ((maxLength - stringDistance) / maxLength); }
public void AddNode(FuzzyNode node) { nodes.Add(node); eventToNode.Add(node.GetLabel(), node); }