Skip to main content
QUICK REVIEW

[Paper Review] A Network Perspective on Software Modularity

Marcelo Serrano Zanetti, Frank Schweitzer|arXiv (Cornell University)|Jan 18, 2012
Software Engineering ResearchComputer Science15 references7 citations
TL;DR

This paper proposes a network-based quantitative method to assess the coherence between Java package decomposition and the underlying software dependency network in large open-source projects. Using modularity Q from complex network theory, it shows that the metric effectively captures structural modularity and can monitor the impact of local development on global software architecture, offering insights into software sustainability and evolution.

ABSTRACT

Modularity is a desirable characteristic for software systems. In this article we propose to use a quantitative method from complex network sciences to estimate the coherence between the modularity of the dependency network of large open source Java projects and their decomposition in terms of Java packages. The results presented in this article indicate that our methodology offers a promising and reasonable quantitative approach with potential impact on software engineering processes.

Motivation & Objective

  • To develop an automatic, quantitative method for assessing the coherence between software modularization and its underlying dependency structure.
  • To monitor the impact of local software changes on the global architecture using a macroscopic metric derived from network science.
  • To evaluate the sustainability of software development by analyzing the time evolution of modularity in open-source Java projects.
  • To explore the relationship between software modularity, refactoring, and project maturity through network-based metrics.
  • To lay the foundation for integrating network-based modularity metrics into software engineering tools for better architectural design and maintenance.

Proposed method

  • Represent Java source code as a network where classes are nodes and dependencies (e.g., method calls, inheritance) are edges.
  • Map each class to its corresponding Java package, using package membership as a proxy for existing modular decomposition.
  • Apply the modularity Q metric from complex network science to quantify the coherence between the package-level decomposition and the dependency network structure.
  • Analyze the time evolution of Q across 28 open-source Java projects using versioned source code extracted from repositories like GitHub and SourceForge.
  • Use network visualization and statistical analysis to correlate fluctuations in Q with project lifecycle stages and refactoring events.
  • Interpret Q as a macroscopic measure reflecting how well the existing software packaging aligns with natural dependency clusters in the codebase.

Experimental results

Research questions

  • RQ1How does the modularity Q metric evolve over time in large open-source Java projects?
  • RQ2To what extent do fluctuations in Q correspond to refactoring activities or project maturity phases?
  • RQ3Can the Q metric serve as a reliable indicator of architectural sustainability in software development?
  • RQ4How does the existing package structure align with the natural clustering of dependencies in the software network?
  • RQ5What is the relationship between network modularity and coordination or communication patterns among developers?

Key findings

  • The modularity Q metric shows significant fluctuations during early project stages, consistent with accelerated growth and frequent restructuring.
  • Stable, mature projects exhibit more consistent Q values, indicating a shift toward sustainable development patterns.
  • Sudden increases in Q are correlated with refactoring events that restructure dependencies and improve modularity.
  • The Q metric effectively captures the coherence between package-level decomposition and dependency structure, suggesting its utility in assessing architectural quality.
  • The metric reveals that inter-module dependencies have a stronger influence on Q than intra-module dependencies, highlighting its sensitivity to key architectural relationships.
  • The hierarchical structure of Java packages influences modularity, with greater distance between packages (e.g., a.b.c.d vs. x.y.z) having a more significant impact on Q than closer ones.

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.