作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2013, Vol. 39 ›› Issue (6): 316-318. doi: 10.3969/j.issn.1000-3428.2013.06.070

• 开发研究与工程应用 • 上一篇    下一篇

基于结点间距离统计的无向无权图同构判别

陈伟平,战荫伟   

  1. (广东工业大学计算机学院,广州 510006)
  • 收稿日期:2012-06-12 出版日期:2013-06-15 发布日期:2013-06-14
  • 作者简介:陈伟平(1987-),男,硕士研究生,主研方向:组合图论;战荫伟,教授、博士

Undirected and Unweighted Graph Isomorphism Determination Based on Distance Statistics of Vertices

CHEN Wei-ping, ZHAN Yin-wei   

  1. (Faculty of Computer, Guangdong University of Technology, Guangzhou 510006, China)
  • Received:2012-06-12 Online:2013-06-15 Published:2013-06-14

摘要: 按照同构图的定义判断两个图是否同构,最坏情况下其时间复杂度是O(N!),当结点数N比较大时,计算速度非常慢,针对该问题,提出一种通过统计结点间距离和按照距离分层,计算同层结点间的关联边数以及关联结点数来研究图中各结点差异的算法,该算法可以给出两个图的结点间可能的对应关系。如果两个图的结点距离数组及对应结点的层结点关联数组不能一一对应,其时间复杂度仅为O(N4),否则,根据结点间可能的对应关系,避免遍历所有结点序号的交换,计算量可以成倍地下降。

关键词: 图同构, 结点距离, 距离分层, 距离统计, Floyd算法, 时间复杂度

Abstract: To determine two graphs are isomorphic or not by the definition of graph isomorphism, at worst, the time complexity is O(N!). Against this problem, it introduces an algorithm which is based on the distance statistics of the vertices. Vertices are stratified by distance, by counting the numbers of related edges and related vertices of vertices which are isometric. The algorithm shows the difference of the vertices, and points out the vertices correspondence of two graphs. If the vertices distance array and layer related vertices array of two graphs are not one-to-one, the time complexity of the algorithm is only O(N4). If they are one-to-one, swap the sequence of the vertices in one graph which may correspond to the vertex in the other graph, avoid swapping the sequence of all vertices, in this condition, the time complexity is reduced by many times.

Key words: graph isomorphism, vertex distance, distance layering, distance statistics, Floyd algorithm, time complexity

中图分类号: