logo Netzschleuder network catalog, repository, and centrifuge

History of software_callgraphs

The changes to the source code of this entry in the repository, newest first, each with the differences it made to the entry's files. They are also listed on GitLab.

[entries] Add the date when each entry was added, and remove icon_hash by Tiago de Paula Peixoto beff7c9
The dates are those of the commits that first added the entries' files
(2020-08-11 for the entries of the initial commit); renamed entries keep
the date of their first name.

Changed: none
diff --git a/entries/software_callgraphs/__init__.py b/entries/software_callgraphs/__init__.py
index 92d0940..8533a52 100644
--- a/entries/software_callgraphs/__init__.py
+++ b/entries/software_callgraphs/__init__.py
@@ -34,7 +34,7 @@ The networks have the following properties:
 tags = ['Technological', 'Software', 'Unweighted', 'Metadata']
 url = 'https://biohpc.cornell.edu/staff/myers/Data/SoftwareGraphs/'
 citation = [('C. R. Myers, "Software systems as complex networks: Structure, function, and evolvability of software collaboration graphs." Physical Review E 68, 046116 (2003)', 'https://doi.org/10.1103/PhysRevE.68.046116')]
-icon_hash = '56a85c8e26855e083a2f795d'
+date_added = '2026-10-25'
 upstream_license = None
 upstream_prefix = 'https://biohpc.cornell.edu/staff/myers/Data/SoftwareGraphs'
 files = [(f'{alt}.txt', alt, None) for alt in ['vtk', 'dm', 'abiword', 'linux',
[entries] Prefix the properties in the descriptions with (Node), (Edge) or (Graph) by Tiago de Paula Peixoto bc3dbbd
The lists of properties at the end of the descriptions marked edge
properties with "Edge" but left node properties unmarked, or grouped
them in "Nodes: `a`, ...; `b`, ..." items, so the kind of a property
was often unclear. Every item now starts with (Node), (Edge) or (Graph),
followed by the property names, a colon and the explanation, one item
per property or group of properties; qualifications (kinds of nodes,
networks) follow the names in parentheses. Properties that were only
named got a short explanation, and a few items that named the wrong
kind of property were corrected.
diff --git a/entries/software_callgraphs/__init__.py b/entries/software_callgraphs/__init__.py
index 1fbe4d8..92d0940 100644
--- a/entries/software_callgraphs/__init__.py
+++ b/entries/software_callgraphs/__init__.py
@@ -30,7 +30,7 @@ description = """Six networks of collaboration among software units in open-sour
 
 The networks have the following properties:
 
-- Nodes: `name`, the name of the class or function."""
+- (Node) `name`: the name of the class or function."""
 tags = ['Technological', 'Software', 'Unweighted', 'Metadata']
 url = 'https://biohpc.cornell.edu/staff/myers/Data/SoftwareGraphs/'
 citation = [('C. R. Myers, "Software systems as complex networks: Structure, function, and evolvability of software collaboration graphs." Physical Review E 68, 046116 (2003)', 'https://doi.org/10.1103/PhysRevE.68.046116')]
[entries] Remove unneeded code from the entries by Tiago de Paula Peixoto 2c69f19
Unneeded "global files" statements, unused imports and variables,
f-strings without placeholders, duplicate keys in foodweb_little_rock
(keeping the order and the values used), and the second definition of
get_lines() in twitter_higgs. Nothing changes in the networks or
descriptions.

Changed: none
diff --git a/entries/software_callgraphs/__init__.py b/entries/software_callgraphs/__init__.py
index 59aa14f..1fbe4d8 100644
--- a/entries/software_callgraphs/__init__.py
+++ b/entries/software_callgraphs/__init__.py
@@ -48,7 +48,6 @@ def fetch_upstream(force=False):
 @coerce_props()
 @annotate()
 def parse(alts=None):
-    global files
     name = __name__.split(".")[-1]
     for fnames, alt, fmt in files:
         if alts is not None and alt not in alts:
[entries] New entry: software_callgraphs by Tiago de Paula Peixoto a718e84
diff --git a/entries/software_callgraphs/__init__.py b/entries/software_callgraphs/__init__.py
new file mode 100644
index 0000000..59aa14f
--- /dev/null
+++ b/entries/software_callgraphs/__init__.py
@@ -0,0 +1,61 @@
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2020-2026 Tiago de Paula Peixoto <tiago@skewed.de>
+#
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option) any
+# later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Affero General Public License along
+# with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+from .. import *
+
+title = "Software class collaboration and call graphs (2002)"
+description = """Six networks of collaboration among software units in open-source software systems, parsed from their source code by C. R. Myers. Three are static class collaboration graphs of object-oriented systems written in C++, where each node is a class, and a directed edge B → A indicates that class B makes reference to class A in its definition, either through inheritance (B is a subclass of A) or aggregation (B holds an instance of A). The other three are static call graphs of procedural systems written in C, where each node is a function (subroutine), and a directed edge g → f indicates that g calls f from within its scope. Self-loops correspond to self-references and recursive calls.
+
+- `vtk`: class collaboration graph of version 4.0 of the VTK visualization library.
+- `dm`: class collaboration graph of Digital Material, a library for atomistic simulation of materials (CVS snapshot of 3 April 2002).
+- `abiword`: class collaboration graph of version 1.0.2 of the AbiWord word processor.
+- `linux`: call graph of version 2.4.19 of the Linux kernel.
+- `mysql`: call graph of version 3.23.32 of the MySQL relational database system.
+- `xmms`: call graph of version 1.2.7 of the XMMS multimedia player.
+
+The networks have the following properties:
+
+- Nodes: `name`, the name of the class or function."""
+tags = ['Technological', 'Software', 'Unweighted', 'Metadata']
+url = 'https://biohpc.cornell.edu/staff/myers/Data/SoftwareGraphs/'
+citation = [('C. R. Myers, "Software systems as complex networks: Structure, function, and evolvability of software collaboration graphs." Physical Review E 68, 046116 (2003)', 'https://doi.org/10.1103/PhysRevE.68.046116')]
+icon_hash = '56a85c8e26855e083a2f795d'
+upstream_license = None
+upstream_prefix = 'https://biohpc.cornell.edu/staff/myers/Data/SoftwareGraphs'
+files = [(f'{alt}.txt', alt, None) for alt in ['vtk', 'dm', 'abiword', 'linux',
+                                              'mysql', 'xmms']]
+
+def fetch_upstream(force=False):
+    return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
+                                force)
+
+@cache_network()
+@coerce_props()
+@annotate()
+def parse(alts=None):
+    global files
+    name = __name__.split(".")[-1]
+    for fnames, alt, fmt in files:
+        if alts is not None and alt not in alts:
+            continue
+        with open_upstream_file(name, fnames, "r") as f:
+            # Whitespace-separated pairs of names: source, target
+            edges = [l.split() for l in f if l.strip()]
+        g = Graph(directed=True)
+        g.vp.name = g.add_edge_list(edges, hashed=True, hash_type="string")
+        yield alt, g