Skip to main content
QUICK REVIEW

[Paper Review] Software systems through complex networks science: Review, analysis and applications

Lovro Šubelj, Marko Bajec|arXiv (Cornell University)|Aug 13, 2012
Complex Network Analysis TechniquesPhysics and Astronomy41 references20 citations
TL;DR

This paper proposes a network science framework for analyzing Java software systems by modeling class dependencies as complex networks. It applies macroscopic, microscopic, and mesoscopic network analyses to reveal structural properties, identify influential/vulnerable classes, and enable refactoring and package prediction—demonstrating that software systems are highly vulnerable to bug propagation but difficult to control, with network-based quality indicators improving design assessment and reusability.

ABSTRACT

Complex software systems are among most sophisticated human-made systems, yet only little is known about the actual structure of 'good' software. We here study different software systems developed in Java from the perspective of network science. The study reveals that network theory can provide a prominent set of techniques for the exploratory analysis of large complex software system. We further identify several applications in software engineering, and propose different network-based quality indicators that address software design, efficiency, reusability, vulnerability, controllability and other. We also highlight various interesting findings, e.g., software systems are highly vulnerable to processes like bug propagation, however, they are not easily controllable.

Motivation & Objective

  • To address the lack of a rigorous, comprehensive framework for analyzing large software systems' structural properties.
  • To investigate whether network science can provide a robust, quantitative approach to software engineering problems.
  • To identify network-based quality indicators that reflect software design, reusability, vulnerability, controllability, and robustness.
  • To explore applications of network analysis in software comprehension, refactoring, and package prediction.
  • To demonstrate that complex network theory offers a promising, systematic approach to understanding and improving software systems.

Proposed method

  • Construct class dependency networks from Java source code, where nodes represent classes and directed links represent dependencies.
  • Analyze macroscopic properties such as scale-free and small-world characteristics using degree distribution and clustering coefficients.
  • Evaluate microscopic properties by identifying influential (high in-degree) and vulnerable (high out-degree) classes using degree centrality and betweenness centrality.
  • Detect mesoscopic structural modules using community detection algorithms to reveal functional and modular organization beyond package hierarchies.
  • Apply Jaccard similarity-based weighting to predict software package assignments based on structural module membership.
  • Define and compute network-based quality indicators such as $p_k^{in}$, $k^{in}$, $D$, $l-l_{ER}$, $E$, $n_d/n$, and $γ$ to assess project-level design and robustness.

Experimental results

Research questions

  • RQ1How do macroscopic network properties like scale-free and small-world phenomena manifest in software class dependency networks?
  • RQ2Which network-based indicators can effectively predict software quality aspects such as reusability, complexity, and vulnerability?
  • RQ3To what extent can structural modules in software networks be used to predict software package assignments?
  • RQ4How do network properties relate to controllability and robustness in large software systems?
  • RQ5Can network analysis techniques improve software refactoring and software comprehension in practice?

Key findings

  • Software systems exhibit scale-free and small-world properties, indicating a highly heterogeneous and clustered dependency structure.
  • The Java language's core namespace is controllable through only 17% of its classes, indicating low controllability despite high connectivity.
  • On average, software package prediction accuracy reaches approximately 80% for most classes, with over 60% of classes having their complete package hierarchy correctly predicted.
  • Network indicators such as $p_k^{in} \sim k^{-\gamma_{in}}$ with $\gamma_{in} > 1$ and $\gamma < 3$ are associated with high reusability and low vulnerability, respectively.
  • High in-degree classes ($k^{in} \gg 0$) are influential hubs, while high out-degree classes ($k^{out} \gg n$) indicate high complexity and potential vulnerability.
  • The network-based indicator $l-l_{ER} \leq 0$ correlates with well-structured and well-designed projects, suggesting improved architectural quality.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.