首页|Visual exploration of dependency graph in source code via embedding-based similarity

Visual exploration of dependency graph in source code via embedding-based similarity

扫码查看
A large software system contains millions of lines of source code, and the development often involves many developers over a long period. How to understand and analyze its complex code dependencies is challenging but meaningful to developers for program comprehension. In this paper, we propose a novel visual analytics system to explore code dependencies between files for visually understanding software architecture and interactively analyzing bad dependencies. The dependencies between files are abstracted as a directed graph (i.e., the dependency graph) at different levels via the file hierarchy to show the modularization design of source code. Node embeddings of the dependency graph are learned to identify the files with specific dependencies and analyze the similarity between bad dependencies. Finally, we evaluate the usability of our system by two case studies in different JavaScript libraries as well as a user study on software architecture understanding and bad dependency analysis.

Code dependenciesDependency graphSoftware visualization

Huan Liu、Yubo Tao、Wenda Huang、Hai Lin

展开 >

State Key Laboratory of CAD&CG, Zhejiang University, Hangzhou, China

2021

Journal of visualization

Journal of visualization

SCI
ISSN:1343-8875
年,卷(期):2021.24(3)
  • 1
  • 35