logo Netzschleuder network catalog, repository, and centrifuge

History of modern_math

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] Remove superfluous details of the upstream distribution from the descriptions by Tiago de Paula Peixoto dc07aa0
The descriptions mentioned incidental details of how the upstream data
are made available: the file formats (CSV, JSON, XML, GEXF, SBML, HIF,
Pajek, UCINET, ...), file names, where the files were published or
obtained from (Zenodo, figshare, Kaggle, the Pajek datasets page, the
Internet Archive), and that some networks are only available in the gt
format. These are left out; caveats about the data themselves are kept,
referring to "the data" instead of "the file". The description of
sp_baboons now lists its properties instead of the upstream columns,
and says that events without a recipient are left out.
diff --git a/entries/modern_math/__init__.py b/entries/modern_math/__init__.py
index 39685f7..6f04b2f 100644
--- a/entries/modern_math/__init__.py
+++ b/entries/modern_math/__init__.py
@@ -19,7 +19,7 @@
 from .. import *
 
 title = 'Modern math diffusion among school superintendents (1958-1963)'
-description = """Friendship choices among school superintendents in Allegheny County (Pennsylvania, USA), from R. O. Carlson's study of the diffusion of the "modern math" teaching method in the late 1950s and early 1960s. The superintendents of school systems combining elementary and secondary programs, who had been at least two years in office, were interviewed (61 of 68), and 51 of them had adopted the method by 1963. Among other things, they were asked "Among the chief school administrators in Allegheny County, who are your three best friends?". The network contains the 38 interviewed superintendents who adopted the method and were in office at least one year before the first adoption. The friendship choices of superintendents who did not receive any choices themselves were not included by the researcher, so they appear as isolated nodes. The data were distributed on the Pajek datasets page of the book *Exploratory Social Network Analysis with Pajek* (de Nooy, Mrvar and Batagelj), from which this version was obtained.
+description = """Friendship choices among school superintendents in Allegheny County (Pennsylvania, USA), from R. O. Carlson's study of the diffusion of the "modern math" teaching method in the late 1950s and early 1960s. The superintendents of school systems combining elementary and secondary programs, who had been at least two years in office, were interviewed (61 of 68), and 51 of them had adopted the method by 1963. Among other things, they were asked "Among the chief school administrators in Allegheny County, who are your three best friends?". The network contains the 38 interviewed superintendents who adopted the method and were in office at least one year before the first adoption. The friendship choices of superintendents who did not receive any choices themselves were not included by the researcher, so they appear as isolated nodes.
 
 - `directed`: the friendship choices, as directed edges from the superintendent making the choice to the chosen one.
 - `symmetrized`: the symmetrized network, in which two superintendents are connected if at least one of them chose the other as a friend.
[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/modern_math/__init__.py b/entries/modern_math/__init__.py
index 6ef5e7e..39685f7 100644
--- a/entries/modern_math/__init__.py
+++ b/entries/modern_math/__init__.py
@@ -32,7 +32,7 @@ tags = ['Social', 'Offline', 'Unweighted', 'Metadata']
 url = 'https://web.archive.org/web/20040706125550/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/modMath.htm'
 citation = [('R. O. Carlson, "Adoption of Educational Innovations." Center for the Advanced Study of Educational Administration, University of Oregon, Eugene (1965)', 'https://web.archive.org/web/20040706125550/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/modMath.htm'),
             ('W. de Nooy, A. Mrvar, V. Batagelj, "Exploratory Social Network Analysis with Pajek." Cambridge University Press (2005)', 'https://doi.org/10.1017/CBO9780511806452')]
-icon_hash = '58b25f64a411221d0e7c6828'
+date_added = '2026-10-25'
 upstream_license = None
 # The Pajek data site (vlado.fmf.uni-lj.si) is no longer reachable, so the
 # files are obtained from the Internet Archive.
[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/modern_math/__init__.py b/entries/modern_math/__init__.py
index d9b2d6e..6ef5e7e 100644
--- a/entries/modern_math/__init__.py
+++ b/entries/modern_math/__init__.py
@@ -26,7 +26,8 @@ description = """Friendship choices among school superintendents in Allegheny Co
 
 The networks have the following properties:
 
-- Nodes: `name`, the identifier of the superintendent ("v1" is the first adopter); `adoption`, the year of adoption of the method by the superintendent's school system (1: 1958, 2: 1959, 3: 1960, and so on)."""
+- (Node) `name`: the identifier of the superintendent ("v1" is the first adopter).
+- (Node) `adoption`: the year of adoption of the method by the superintendent's school system (1: 1958, 2: 1959, 3: 1960, and so on)."""
 tags = ['Social', 'Offline', 'Unweighted', 'Metadata']
 url = 'https://web.archive.org/web/20040706125550/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/modMath.htm'
 citation = [('R. O. Carlson, "Adoption of Educational Innovations." Center for the Advanced Study of Educational Administration, University of Oregon, Eugene (1965)', 'https://web.archive.org/web/20040706125550/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/modMath.htm'),
[entries] New entry: modern_math by Tiago de Paula Peixoto 806444b
diff --git a/entries/modern_math/__init__.py b/entries/modern_math/__init__.py
new file mode 100644
index 0000000..d9b2d6e
--- /dev/null
+++ b/entries/modern_math/__init__.py
@@ -0,0 +1,59 @@
+#! /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 = 'Modern math diffusion among school superintendents (1958-1963)'
+description = """Friendship choices among school superintendents in Allegheny County (Pennsylvania, USA), from R. O. Carlson's study of the diffusion of the "modern math" teaching method in the late 1950s and early 1960s. The superintendents of school systems combining elementary and secondary programs, who had been at least two years in office, were interviewed (61 of 68), and 51 of them had adopted the method by 1963. Among other things, they were asked "Among the chief school administrators in Allegheny County, who are your three best friends?". The network contains the 38 interviewed superintendents who adopted the method and were in office at least one year before the first adoption. The friendship choices of superintendents who did not receive any choices themselves were not included by the researcher, so they appear as isolated nodes. The data were distributed on the Pajek datasets page of the book *Exploratory Social Network Analysis with Pajek* (de Nooy, Mrvar and Batagelj), from which this version was obtained.
+
+- `directed`: the friendship choices, as directed edges from the superintendent making the choice to the chosen one.
+- `symmetrized`: the symmetrized network, in which two superintendents are connected if at least one of them chose the other as a friend.
+
+The networks have the following properties:
+
+- Nodes: `name`, the identifier of the superintendent ("v1" is the first adopter); `adoption`, the year of adoption of the method by the superintendent's school system (1: 1958, 2: 1959, 3: 1960, and so on)."""
+tags = ['Social', 'Offline', 'Unweighted', 'Metadata']
+url = 'https://web.archive.org/web/20040706125550/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/modMath.htm'
+citation = [('R. O. Carlson, "Adoption of Educational Innovations." Center for the Advanced Study of Educational Administration, University of Oregon, Eugene (1965)', 'https://web.archive.org/web/20040706125550/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/modMath.htm'),
+            ('W. de Nooy, A. Mrvar, V. Batagelj, "Exploratory Social Network Analysis with Pajek." Cambridge University Press (2005)', 'https://doi.org/10.1017/CBO9780511806452')]
+icon_hash = '58b25f64a411221d0e7c6828'
+upstream_license = None
+# The Pajek data site (vlado.fmf.uni-lj.si) is no longer reachable, so the
+# files are obtained from the Internet Archive.
+upstream_prefix = 'https://web.archive.org/web/20051030091318id_/http://vlado.fmf.uni-lj.si/pub/networks/data/esna'
+files = [('modMath.zip:ModMath.paj', 'directed', None),
+         ('modMath.zip:ModMath.paj', 'symmetrized', None)]
+
+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):
+    name = __name__.split(".")[-1]
+    items = load_pajek(name, 'modMath.zip:ModMath.paj')
+    if alts is None or 'directed' in alts:
+        g = pajek_graph(get_pajek_item(items, "network", 'ModMath_directed.net'))
+        set_pajek_partition(g, get_pajek_item(items, "partition"), "adoption")
+        yield 'directed', g
+    if alts is None or 'symmetrized' in alts:
+        g = pajek_graph(get_pajek_item(items, "network", 'ModMath.net'))
+        set_pajek_partition(g, get_pajek_item(items, "partition"), "adoption")
+        yield 'symmetrized', g