Edit distance between two graphs

后端 未结 4 1025
终归单人心
终归单人心 2020-12-28 16:01

I\'m just wondering if, like for strings where we have the Levenshtein distance (or edit distance) between two strings, is there something similar for graphs?

I mean

4条回答
  •  长发绾君心
    2020-12-28 16:50

    For a general graph it is a NP-complete problem as others mentioned in their answer. But for tree graph there are well known polynomial algorithms. May be most famous of them is "Zhang Shasha" algorithm which was published in 1989.

提交回复
热议问题