Skip to main content
QUICK REVIEW

[Paper Review] Towards physical laws for software architecture

A. D. Chepelianskii|arXiv (Cornell University)|Mar 29, 2010
Complex Network Analysis TechniquesPhysics and Astronomy10 references45 citations
TL;DR

This paper proposes a quantitative framework for software architecture by modeling procedure call networks (PCNs) in open-source software as scale-free networks, applying PageRank and influence metrics to identify critical code components. It finds that popularity and influence in PCNs are statistically uncorrelated—contrasting with the web—suggesting a quantitative basis for the principle of 'separation of concerns' and enabling automated detection of structurally critical code elements.

ABSTRACT

Starting from the pioneering works on software architecture precious guidelines have emerged to indicate how computer programs should be organized. For example the "separation of concerns" suggests to split a program into modules that overlap in functionality as little as possible. However these recommendations are mainly conceptual and are thus hard to express in a quantitative form. Hence software architecture relies on the individual experience and skill of the designers rather than on quantitative laws. In this article I apply the methods developed for the classification of information on the World-Wide-Web to study the organization of Open Source programs in an attempt to establish the statistical laws governing software architecture.

Motivation & Objective

  • To establish quantitative, data-driven laws for software architecture, moving beyond conceptual guidelines like 'separation of concerns'.
  • To analyze the structural properties of software by modeling it as a procedure call network (PCN) derived from source code.
  • To apply link analysis techniques from the web (e.g., PageRank) to identify important and influential procedures in software.
  • To investigate whether statistical correlations between popularity and influence in PCNs mirror those in the World Wide Web.
  • To identify structural features—such as eigenvalue distribution and correlation of metrics—that distinguish well-organized software from web-like networks.

Proposed method

  • Constructs a procedure call network (PCN) by parsing C source code, where nodes are functions and directed edges represent function calls.
  • Applies the Google matrix formalism (G_ij = αS_ij + (1−α)/N) to compute PageRank (ρ) and influence (ρ*) vectors for each function.
  • Uses the correlation coefficient κ = N∑ρ(i)ρ*(i) − 1 to quantify statistical dependence between popularity and influence in the network.
  • Analyzes the spectral properties of the Google matrix, particularly the distribution of eigenvalues in the complex plane, to assess network modularity and community structure.
  • Compares degree distributions P_in(ν) and P_out(ν̄) to test for scale-free behavior, fitting power laws with exponents γ_in ≈ 2.0 and γ_out ≈ 3.0.
  • Evaluates the robustness of findings across multiple open-source projects, including Linux kernel, GIMP, and X Windows server, using consistent network metrics.

Experimental results

Research questions

  • RQ1Do software architecture networks exhibit scale-free properties similar to the World Wide Web?
  • RQ2Is there a statistical correlation between a function's popularity (PageRank) and its influence (influence vector) in software networks?
  • RQ3How do the spectral properties of the Google matrix in software PCNs compare to those in web hyperlink networks?
  • RQ4Can the absence of correlation between popularity and influence in PCNs be interpreted as a quantitative expression of 'separation of concerns'?
  • RQ5To what extent do eigenvalue distributions in the Google matrix reflect the modularity and coordination structure of software systems?

Key findings

  • The procedure call networks (PCNs) of the Linux kernel and other open-source projects are scale-free, with in-degree and out-degree distributions following power laws with exponents γ_in = 2.0 ± 0.02 and γ_out = 3.0 ± 0.1, respectively.
  • The correlation coefficient between popularity (PageRank) and influence is κ ≈ 0, indicating near-independence between popular and influential functions in PCNs, contrasting with positive κ values (e.g., 3.79) in web networks.
  • The eigenvalue distribution of the Google matrix for PCNs shows only ~1% of modes with |λ| > 0.1, indicating minimal independent communities, unlike web networks where ~50% of modes are weakly connected.
  • The joint probability distribution P(ρ, ρ*) of popularity and influence in PCNs closely matches the product of marginal distributions p(ρ)p*(ρ*), confirming statistical independence.
  • Functions like do_fork() in the Linux kernel, which are both highly popular and highly influential, are identified as critical components due to their dual role in code structure.
  • The method successfully generalizes to other open-source projects, including GIMP (κ = -0.068) and X Windows server (κ = -0.027), showing consistent results across diverse software systems.

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.