用强化学习优化图布局的交叉数,提升可读性。
Using Reinforcement Learning to Optimize the Global and Local Crossing Number
- 以减少全局或局部交叉数为目标,用强化学习控制顶点移动
- 在标准测试图上,局部交叉数优化效果优于传统方法
- 适合需要均衡布局质量的可视化场景
图绘制关注图的算法可视化。良好的图布局易于阅读,有助于完成图上的任务。已识别出若干良好布局的特征:低交叉数、边间夹角大、边短、对称性明显。这些特性多为可度量指标。因此,可将图绘制问题建模为单玩家游戏:通过迭代移动直线图布局中的顶点来减少边交叉。本文研究强化学习能否发现有效的策略来玩此游戏。我们的强化学习代理观察顶点的局部几何与结构上下文,选择移动方向,目标是降低全局交叉数(总交叉数)或局部交叉数(每条边最大交叉数)。我们在标准基准图上将该策略与现有方法和经典交叉最小化启发式算法进行比较。虽然本方法在最小化全局交叉数方面未超越最先进水平,但在最小化局部交叉数方面表现具有竞争力,且常更优。
原文摘要 · Abstract (English)
Graph drawing concerns the algorithmic visualization of graphs. A good drawing of a graph is easy to read and facilitates solving tasks on the graph. Several properties have been identified to occur in good drawings of graphs. Such properties include a low number of crossings, large angles between edges, short edges, and depicting symmetries. Many of these properties are explicitly measurable metrics. This lets us model a graph-drawing problem as a game where a single player iteratively moves vertices of a straight-line graph drawing to reduce edge crossings. We investigate whether reinforcement learning can discover effective strategies for playing this game. Our reinforcement-learning agent observes the local geometric and structural context of a vertex and selects a movement direction with the goal of reducing either the global or the local crossing number, that is, either the total number of crossings or the maximum number of crossings per edge. We compare the resulting strategies to existing methods and established crossing-minimization heuristics on standard benchmark graphs. While our approach does not out-compete state-of-the-art methods for minimizing the global crossing number, it is competitive and often superior for minimizing the local crossing number.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。