A degree-driven approach to design pattern mining based on graph matching

被引:3
作者
Zhang, Ping [1 ]
Yu, Dongjin [1 ]
Wang, Jiaojiao [1 ]
机构
[1] Hangzhou Dianzi Univ, Dept Comp Sci, Hangzhou, Zhejiang, Peoples R China
来源
2017 24TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2017) | 2017年
关键词
design patterns; design pattern mining; graph matching; in degree; out degree; data graph;
D O I
10.1109/APSEC.2017.24
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Design patterns play an important role in the understanding and implementation of software design process, as well as the restoration of architecture. Consequently, the detection of a design pattern represents a pivotal problem for the comprehension of many complex software systems. However, most approaches based on graph matching are faced with search space explosions and low efficiency in terms of mining speed. To address this problem, this paper proposes an approach to mine design pattern instances in source code by degree-driven matching which is divided into two parts. The first part concerns the sub-system division, in which all the information related to detection is included in the relevant region for the data graph. The other concerns the match with the cross-validation sequence based on certain rules to obtain the instances of an effective region. Extensive experiments, using a design instance library, are conducted to evaluate the approach's performance in comparison with other tools on eight open source software projects. The results show that the proposed approach can detect design patterns more effectively than current state-of-the-art approaches.
引用
收藏
页码:179 / 188
页数:10
相关论文
共 23 条
[21]   From Sub-patterns to Patterns: an Approach to the Detection of Structural Design Pattern Instances by Subgraph Mining and Merging [J].
Yu, Dongjin ;
Zhang, Yanyan ;
Ge, Jianlin ;
Wu, Wei .
2013 IEEE 37TH ANNUAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE (COMPSAC), 2013, :579-588
[22]   On applying machine learning techniques for design pattern detection [J].
Zanoni, Marco ;
Fontana, Francesca Arcelli ;
Stella, Fabio .
JOURNAL OF SYSTEMS AND SOFTWARE, 2015, 103 :102-117
[23]  
Zhao Y, 2013, SOFTW ENG C, P559