Refactoring software packages via community detection in complex software networks

  • Authors:
  • Wei-Feng Pan;Bo Jiang;Bing Li

  • Affiliations:
  • School of Computer Science and Information Engineering, Zhejiang Gongshang University, Hangzhou, China 310018 and State Key Laboratory of Software Engineering, Wuhan University, Wuhan, China 43007 ...;School of Computer Science and Information Engineering, Zhejiang Gongshang University, Hangzhou, China 310018;State Key Laboratory of Software Engineering, Wuhan University, Wuhan, China 430072

  • Venue:
  • International Journal of Automation and Computing
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

An intrinsic property of software in a real-world environment is its need to evolve, which is usually accompanied by the increase of software complexity and deterioration of software quality, making software maintenance a tough problem. Refactoring is regarded as an effective way to address this problem. Many refactoring approaches at the method and class level have been proposed. But the research on software refactoring at the package level is very little. This paper presents a novel approach to refactor the package structures of object oriented software. It uses software networks to represent classes and their dependencies. It proposes a constrained community detection algorithm to obtain the optimized community structures in software networks, which also correspond to the optimized package structures. And it finally provides a list of classes as refactoring candidates by comparing the optimized package structures with the real package structures. The empirical evaluation of the proposed approach has been performed in two open source Java projects, and the benefits of our approach are illustrated in comparison with the other three approaches.