欢迎访问《图学学报》 分享到:

图学学报 ›› 2025, Vol. 46 ›› Issue (2): 402-414.DOI: 10.11996/JG.j.2095-302X.2025020402

• 计算机图形学与虚拟现实 • 上一篇    下一篇

基于用户样例的图布局定制化调整

陈俊旭1(), 吴子梁1, 朱闽峰2, 陈为1()   

  1. 1.浙江大学计算机辅助设计与图形系统全国重点实验室,浙江 杭州 310058
    2.浙江大学软件学院,浙江 杭州 310058
  • 收稿日期:2024-08-23 接受日期:2024-11-07 出版日期:2025-04-30 发布日期:2025-04-24
  • 通讯作者:陈为(1976-),男,教授,博士。主要研究方向为可视化、可视分析等。E-mail:chenvis@zju.edu.cn
  • 第一作者:陈俊旭(1999-),男,硕士研究生。主要研究方向为可视化与可视分析。E-mail:chenjx_work@163.com
  • 基金资助:
    国家自然科学基金重点项目(62132017);浙江省领雁研发攻关计划(2024C01167);浙江省自然科学基金重大项目(LD24F020011)

Graph layout customization based on user-specified examples

CHEN Junxu1(), WU Ziliang1, ZHU Minfeng2, CHEN Wei1()   

  1. 1. State Key Laboratory of CAD&CG, Zhejiang University, Hangzhou Zhejiang 310058, China
    2. School of Software Technology, Zhejiang University, Hangzhou Zhejiang 310058, China
  • Received:2024-08-23 Accepted:2024-11-07 Published:2025-04-30 Online:2025-04-24
  • First author:CHEN Junxu (1999-), master student. His main research interests cover visualization and visual analytics. E-mail:chenjx_work@163.com
  • Supported by:
    National Natural Science Foundation of China Key Project(62132017);“Pioneer”and“Leading Goose”Research and Development Program of Zhejiang(2024C01167);Major Project of the Natural Science Foundation of Zhejiang Province(LD24F020011)

摘要:

传统的自动图布局算法虽然能保证图布局的整体美学特性,但却无法生成定制化的图布局。在不同的实际应用场景下,用户常常需要对自动布局后的图进行调整以满足具体的需求。现有的图布局调整主要分为2类:节点级别的手动调整和基于约束的图布局,前者非常耗时且枯燥,后者常常缺乏灵活性。为此,提出了一种基于用户样例的图布局定制化调整方法,主要基于图混合理论将样例图的属性和特点混合到源图上,从而实现灵活、高效的图布局定制化调整。首先对样例进行预处理,然后设计2种映射样例和6种映射模式来生成样例和源图之间节点级的映射矩阵,并使用该映射矩阵将样例图向源图对齐,最后按照一定比例进行混合得到定制化调整的图布局。设计开发了一个基于web的交互系统来实现该方法,系统支持样例草图绘制、样例导入和选取、源图导入和选取、映射模式选择、图混合比例控制、节点级的微调。同时开展了案例分析和评估实验,结果验证了该方法的可行性和有效性。

关键词: 图布局, 节点连接图, 用户交互, 图可视化

Abstract:

Traditional automatic graph layout algorithms, while ensuring the overall aesthetic properties of graph lay-outs, are unable to generate customized graph layouts. In different practical application scenarios, users often need to adjust the automatically generated graph layouts to meet specific requirements. Existing graph layout adjustments mainly fall into two categories: manual node-level adjustments and constraint-based graph layouts. The former is extremely time-consuming and monotonous, while the latter often lacks flexibility. A customized graph layout adjustment method based on user examples was proposed. This method primarily utilized graph blending theory to integrate the attributes and characteristics of example graphs into the source graphs, thereby achieving flexible and efficient customized graph layout adjustments. Initially, the examples were preprocessed. Two mapping examples and six mapping modes were then designed to generate node-level mapping matrices between the examples and the source graphs. The mapping matrices were employed to align the example graph with the source graph, and the graphs were blended at a certain ratio to obtain the customized graph layout adjustments. A web-based interactive system was designed and developed to implement this method, supporting example Sketch drawing, example importing and selection, source graph importing and selection, mapping mode selection, graph blending ratio control, and node-level fine-tuning. Case studies and evaluation experiments were conducted to validate the feasibility and effectiveness of the proposed method.

Key words: graph layout, node-link diagram, user interactions, graph visualization

中图分类号: