计算机工程与应用 ›› 2011, Vol. 47 ›› Issue (8): 172-174.

• 图形、图像、模式识别 • 上一篇    下一篇

利用遗传算法改进DAG绘制的方法

郭 涛,么 炜,苑迎春   

  1. 河北农业大学 信息科学与技术学院,河北 保定 071001
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2011-03-11 发布日期:2011-03-11

Improved method for drawing directed acyclic graph with genetic algorithm

GUO Tao,YAO Wei,YUAN Yingchun   

  1. Faculty of Information Science and Technology,Agriculture University of Hebei,Baoding,Hebei 071001,China
  • Received:1900-01-01 Revised:1900-01-01 Online:2011-03-11 Published:2011-03-11

摘要: DAG图(Directed Acyclic Graph)广泛应用于数据库建模、工程设计等领域。DAG图一般用矩阵来存储,能够将矩阵存储的DAG图正确、美观地画出来,使得DAG图更直观,清晰,方便各种问题的分析和处理。DAG图的绘制包含分层、最小化边交叉数和删除哑结点。提出了基于遗传算法的分层和最小化边交叉数的方法和删除哑结点的启发式算法。实例结果表明提出的方法能有效解决DAG图绘制中的交叉点问题。

关键词: 分层, 最小化边交叉数, 遗传算法, 哑结点

Abstract:

The DAG graph(Directed Acyclic Graph) is widely used in database modeling and engineering design,and it is always stored by using matrix.If the DAG graph which is stored by matrix can be draw precisely and clearly,the graph will be easily to read.Many problems will be conveniently to solve.There are three main aspects in the drawing of the DAG graph:delaminating,minimizing the edge crossing number and eliminating the void notes.An edge crossing minimization algorithm for layered digraphs based on genetic algorithms is presented,and a heuristic algorithm to eliminate void notes is also proposed.The result of the example shows that these methods can solve the DAG drawing problem effectively.

Key words: delaminating, edge crossing number minimization, inheritance arithmetic, void notes