Skip to main content
QUICK REVIEW

[Paper Review] A Generative Model of Software Dependency Graphs to Better Understand Software Evolution

Vincenzo Musco, Martin Monperrus|arXiv (Cornell University)|Oct 29, 2014
Complex Network Analysis TechniquesPhysics and Astronomy37 references7 citations
TL;DR

This paper proposes GD-GNC, a generative model for synthetic software dependency graphs that mimics real Java software systems by combining preferential attachment with node duplication. It demonstrates that GD-GNC produces graphs with degree distributions, spectral properties, and structural metrics closely matching real software systems, suggesting that software evolution is driven by remixing existing classes and refactoring into reusable components.

ABSTRACT

Software systems are composed of many interacting elements. A natural way to abstract over software systems is to model them as graphs. In this paper we consider software dependency graphs of object-oriented software and we study one topological property: the degree distribution. Based on the analysis of ten software systems written in Java, we show that there exists completely different systems that have the same degree distribution. Then, we propose a generative model of software dependency graphs which synthesizes graphs whose degree distribution is close to the empirical ones observed in real software systems. This model gives us novel insights on the potential fundamental rules of software evolution.

Motivation & Objective

  • To identify common structural patterns in software dependency graphs across diverse Java applications.
  • To develop a generative model that replicates the empirical structural properties of real software dependency graphs.
  • To validate the model against real-world data using multiple graph metrics and statistical tests.
  • To uncover underlying evolution rules in software development through synthetic graph generation.
  • To provide a foundation for future studies on software evolution, including version series and graph motifs.

Proposed method

  • Proposes GD-GNC, a generative model based on preferential attachment and node duplication, inspired by the GNC (Edge-Driven Preferential Attachment) model.
  • Uses cumulative degree distribution (CDF) to compare synthetic and real graphs, focusing on in-degree and out-degree distributions.
  • Employs statistical tests to evaluate the goodness-of-fit between synthetic graphs and real software dependency graphs.
  • Evaluates graph metrics including diameter, transitivity, modularity, average shortest path length, and spectral properties.
  • Compares GD-GNC against Baxter & Frean’s model and other generative models using multiple structural and topological measures.
  • Validates the model on 50 real Java software systems with a total of 23,178 nodes and 108,404 edges.

Experimental results

Research questions

  • RQ1RQ1: Are there common structural patterns in the degree distributions of software dependency graphs across diverse Java applications?
  • RQ2RQ2: How does GD-GNC compare to existing generative models in replicating the structural properties of real software dependency graphs?
  • RQ3RQ3: What underlying evolution rules in software development are suggested by the generative model’s behavior?
  • RQ4RQ4: Can the generative model produce synthetic graphs that match real graphs across multiple metrics beyond degree distribution?

Key findings

  • A common asymmetric degree distribution pattern exists across 50 Java software systems, with distinct in-degree and out-degree distributions.
  • GD-GNC generates synthetic graphs whose degree distributions closely match real software dependency graphs, as confirmed by statistical tests.
  • The model outperforms Baxter & Frean’s model in fitting empirical data across multiple metrics, including diameter, transitivity, and modularity.
  • Spectral properties and average shortest path lengths of GD-GNC-generated graphs are statistically indistinguishable from real software graphs.
  • The model suggests that software evolution is driven by the remixing of existing classes and refactoring into reusable components.
  • The generative model provides strong evidence that core evolution mechanisms in software are replicable through simple, rule-based processes.

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.