Skip to main content
QUICK REVIEW

[Paper Review] Software graphs and programmer awareness

Gareth Baxter, Marcus Frean|ArXiv.org|Feb 16, 2008
Software Engineering ResearchComputer Science13 references4 citations
TL;DR

This paper proposes a generative model that explains the distinct in-degree (power-law) and out-degree (exponential) distributions observed in software dependency graphs. The model attributes this asymmetry to programmer awareness: developers actively manage outgoing dependencies (out-degree) but are unaware of incoming dependencies (in-degree), which the model captures through a node-splitting mechanism dependent only on out-degree, successfully reproducing real-world distributions across 12 Java applications and 14 metrics.

ABSTRACT

Dependencies between types in object-oriented software can be viewed as directed graphs, with types as nodes and dependencies as edges. The in-degree and out-degree distributions of such graphs have quite different forms, with the former resembling a power-law distribution and the latter an exponential distribution. This effect appears to be independent of application or type relationship. A simple generative model is proposed to explore the proposition that the difference arises because the programmer is aware of the out-degree of a type but not of its in-degree. The model reproduces the two distributions, and compares reasonably well to those observed in 14 different type relationships across 12 different Java applications.

Motivation & Objective

  • To explain the persistent asymmetry in in-degree and out-degree distributions observed in software dependency graphs across diverse Java applications.
  • To investigate whether programmer awareness of outgoing dependencies—while unaware of incoming ones—can account for the observed distribution shapes.
  • To develop and validate a simple generative model that captures this cognitive asymmetry and reproduces empirical degree distributions.
  • To test the model’s robustness across multiple software metrics and real-world applications, demonstrating generalizability beyond specific design patterns.

Proposed method

  • The model generates directed graphs by adding edges between existing nodes and allowing node splitting, where a node divides into two based on its out-degree.
  • Node splitting is triggered only by the parent’s out-degree, not its in-degree, modeling programmer awareness of outgoing dependencies.
  • The model uses a preferential attachment mechanism for edge creation, favoring nodes with higher out-degrees.
  • The out-degree distribution is derived from a stochastic process where splitting depends on out-degree, leading to an exponential distribution.
  • The in-degree distribution emerges naturally from the network growth process and is found to follow a power-law, matching empirical data.
  • The model is validated by comparing its predicted degree distributions against 14 metrics from 12 real Java applications, using log-log and log-linear plots.

Experimental results

Research questions

  • RQ1Why do in-degree distributions in software graphs consistently follow a power-law, while out-degree distributions follow an exponential form?
  • RQ2To what extent can the observed distribution asymmetry be explained by programmer awareness of outgoing dependencies rather than incoming ones?
  • RQ3Can a simple generative model based on asymmetric node splitting reproduce the empirical degree distributions seen in real software systems?
  • RQ4Does the model's performance hold across diverse software applications and different types of dependency metrics?

Key findings

  • The model successfully reproduces the observed power-law in-degree and exponential out-degree distributions across 14 different dependency metrics in 12 real Java applications.
  • The key mechanism—node splitting dependent only on out-degree—accounts for the entire asymmetry in degree distribution shapes.
  • The model's predictions align well with empirical data, particularly in the tail regions of the distributions, confirming its explanatory power.
  • The model's success across diverse applications and metrics suggests that programmer awareness of outgoing dependencies is a fundamental, general mechanism shaping software architecture.
  • The model provides a minimal yet sufficient explanation for the observed network structure, without requiring complex or application-specific assumptions.

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.