string comparison in python but not Levenshtein distance (I think)
I found a crude string comparison in a paper I am reading done as follows: The equation they use is as follows (extracted from the paper with small word changes to make it more general and readable) I have tried to explain a bit more in my own words since the description by the author is not very clear (using an example by the author) For example for 2 sequences ABCDE and BCEFA, there are two possible graphs graph 1) which connects B with B C with C and E with E graph 2) connects A with A I cannot connect A with A when I am connecting the other three (graph 1) since that would be crossing