简体   繁体   English

图匹配算法

[英]Graph matching algorithms

I've been searching for graph matching algorithms written in Python but I haven't been able to find much.我一直在搜索 Python 中编写的图形匹配算法,但找不到太多。

I'm currently trying to match two different graphs that derive from two distinct sets of character sequences.我目前正在尝试匹配从两组不同的字符序列派生的两个不同的图形。 I know that there is an underlying connection between the two graphs, more precisely a one-to-one mapping between the nodes.我知道这两个图之间存在潜在联系,更准确地说是节点之间的一对一映射。 But the graphs don't have the same labels and as such I need graph matching algorithms that return nodes mappings just by comparing topology and/or attributes.但是这些图没有相同的标签,因此我需要通过比较拓扑和/或属性来返回节点映射的图匹配算法。 By testing, I hope to maximize correct matches.通过测试,我希望最大化正确匹配。

I've been using Blondel and Heymans from the graphsim package and intend to also use Tacsim from the same package. I would like to test other options, probably more standard, like maximum subgraph isomorphism or finding subgraphs with very good matchings between the two graphs.我一直在使用 graphsim package 中的BlondelHeymans ,并打算也使用同一个package中的 Tacsim。我想测试其他选项,可能更标准,比如最大子图同构或找到两个图之间匹配非常好的子图. Graph edit distance might also help if it manages to give a matching.如果图形编辑距离设法给出匹配,它也可能有帮助。

The problem is that I can't find anything implemented, even in Networkx that I'm using.问题是我找不到任何实现,即使在我正在使用的 Networkx 中也是如此。 Does anyone know of any Python implementations?有谁知道任何 Python 实现? Would be a plus if those options used Networkx.如果这些选项使用 Networkx,那将是一个加号。

I found this implementation of Graph Edit Distance algorithms which uses NetworkX in Python.我在 Python 中找到了使用 NetworkX 的图形编辑距离算法的实现。

https://github.com/Jacobe2169/GMatch4py https://github.com/Jacobe2169/GMatch4py

"GMatch4py is a library dedicated to graph matching. Graph structure are stored in NetworkX graph objects. GMatch4py algorithms were implemented with Cython to enhance performance." “GMatch4py 是一个专门用于图形匹配的库。图形结构存储在 NetworkX 图形对象中。GMatch4py 算法是用 Cython 实现的,以提高性能。”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM