mljs / tree-similarity

Tree similarity in Javascript
MIT License
8 stars 1 forks source link

Add test case with similarity of 2 identical trees #17

Open lpatiny opened 7 months ago

lpatiny commented 7 months ago

I would expect that the similarity is 1 but I have the impression it is not the case.

lpatiny commented 7 months ago

Clearly this algorithm does not yield a value between 0 to 1 which may be confusing but I think it is the way the algorithm was designed.

lpatiny commented 6 months ago

Please migrate to this new code: