예제 #1
0
        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);
        }
예제 #2
0
 public void AddNode(FuzzyNode node)
 {
     nodes.Add(node);
     eventToNode.Add(node.GetLabel(), node);
 }