• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2006, Vol. 28 ›› Issue (6): 58-61.

• 论文 • 上一篇    下一篇

用遗传算法画无向图

张清国 叶俊民 张维 张连发   

  • 出版日期:2006-06-01 发布日期:2010-05-20

  • Online:2006-06-01 Published:2010-05-20

摘要:

本文提出了一个新的画一般无向图的遗传算法.以前的无向图画图算法将顶点数较多且无弦的圈画成了凹多边形,为了克服这一缺点,本文的遗传算法设计了全新的变异算子--单点邻域变异,并在适应度函数中增加用于产生对称画法的分量,可将这种图画成凸多边形.新算法的优点是方法简单,易于实现,画出的图形美观,其灵活之处在于准则的权重可 以改变.实验结果表明,在相同条件下,本文算法画出的图形要比标准遗传算法画出的图形美观.

关键词: 遗传算法 无向图 画图 美学标准

Abstract:

This paper proposes a new genetic algorithm for drawing general undirected graphs nicely. Previous undirected graph drawing algorithms draw large cycles with no chords as concave polygons. In order to overcome such disadvantages, the genetic algorithm in this paper designs a new mutation operator call edsinglenodeneighborhood mutation, and adds a component aiming at symmetric drawings to the fitness function, and it can draw such type of graphs as co nvex polygons. The new algorithm has the following advantages: It is simple and easy to be implemented, and the figures drawn by the algorithm are beauutiful, and also it is flexible in that the relative weights of the criteria can be changed. The experiment results show that the figures drawn by our algorithm are more beautiful than that of simple genetic algorithms under the same conditions.

Key words: (genetic algorithm, undirected graph, graph drawing, aesthetic criteria)