History of quakers
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 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/quakers/__init__.py b/entries/quakers/__init__.py
index e924988..3dccf64 100644
--- a/entries/quakers/__init__.py
+++ b/entries/quakers/__init__.py
@@ -36,7 +36,7 @@ url = ['https://programminghistorian.org/en/lessons/exploring-and-analyzing-netw
'https://web.archive.org/web/20180820051835/http://6dfb.tumblr.com/post/164795439991/six-degrees-of-pennsylvania-william-penn-and']
citation = [('J. R. Ladd, J. Otis, C. N. Warren, S. Weingart, "Exploring and analyzing network data with Python." Programming Historian 6 (2017)', 'https://doi.org/10.46430/phen0064'),
('C. N. Warren, D. Shore, J. Otis, L. Wang, M. Finegold, C. Shalizi, "Six Degrees of Francis Bacon: a statistical method for reconstructing large historical social networks." Digital Humanities Quarterly 10(3) (2016)', 'https://digitalhumanities.org/dhq/vol/10/3/000244/000244.html')]
-icon_hash = '56a85c8e26855e083a2f78ac'
+date_added = '2026-10-25'
upstream_license = ("Creative Commons Attribution 4.0 International (CC BY 4.0)",
"https://creativecommons.org/licenses/by/4.0/")
upstream_prefix = 'https://programminghistorian.org/assets/exploring-and-analyzing-network-data-with-python'
[entries] Prefix the properties in the descriptions with (Node), (Edge) or (Graph) 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/quakers/__init__.py b/entries/quakers/__init__.py
index 1be3a95..e924988 100644
--- a/entries/quakers/__init__.py
+++ b/entries/quakers/__init__.py
@@ -24,11 +24,11 @@ description = """Social network of 119 early members of the Religious Society of
The nodes have the following properties:
-- `name`: the name of the person (e.g. "William Penn", "George Fox").
-- `historical_significance`: a short description of the person (e.g. "religious writer", "Quaker preacher").
-- `gender`: "male" or "female", as given in the source.
-- `birth` and `death`: the years of birth and death.
-- `sdfb_id`: the identifier of the person in the SDFB data.[^icon]
+- (Node) `name`: the name of the person (e.g. "William Penn", "George Fox").
+- (Node) `historical_significance`: a short description of the person (e.g. "religious writer", "Quaker preacher").
+- (Node) `gender`: "male" or "female", as given in the source.
+- (Node) `birth` and `death`: the years of birth and death.
+- (Node) `sdfb_id`: the identifier of the person in the SDFB data.[^icon]
[^icon]: Description obtained in part from the [ICON](https://icon.colorado.edu) project."""
tags = ['Social', 'Offline', 'Unweighted', 'Metadata']
[entries] Remove unneeded code from the entries 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/quakers/__init__.py b/entries/quakers/__init__.py
index 3dde83e..1be3a95 100644
--- a/entries/quakers/__init__.py
+++ b/entries/quakers/__init__.py
@@ -50,7 +50,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: quakers 6e22621
diff --git a/entries/quakers/__init__.py b/entries/quakers/__init__.py
new file mode 100644
index 0000000..3dde83e
--- /dev/null
+++ b/entries/quakers/__init__.py
@@ -0,0 +1,72 @@
+#! /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 = "Early Quaker social network (17th century)"
+description = """Social network of 119 early members of the Religious Society of Friends (Quakers) in seventeenth-century Britain and its colonies, a subset of the data of the Six Degrees of Francis Bacon (SDFB) project, published with the Programming Historian tutorial "Exploring and Analyzing Network Data with Python" by J. R. Ladd, J. Otis, C. N. Warren and S. Weingart. SDFB reconstructs the social network of early modern Britain (1500-1700) from the Oxford Dictionary of National Biography (ODNB): relationships are first inferred statistically from the co-occurrence of names in the ODNB biographies, and then curated by contributors. Nodes are persons, and an undirected edge indicates a relationship (of an unspecified kind) between two persons in the SDFB data.
+
+The nodes have the following properties:
+
+- `name`: the name of the person (e.g. "William Penn", "George Fox").
+- `historical_significance`: a short description of the person (e.g. "religious writer", "Quaker preacher").
+- `gender`: "male" or "female", as given in the source.
+- `birth` and `death`: the years of birth and death.
+- `sdfb_id`: the identifier of the person in the SDFB data.[^icon]
+
+[^icon]: Description obtained in part from the [ICON](https://icon.colorado.edu) project."""
+tags = ['Social', 'Offline', 'Unweighted', 'Metadata']
+url = ['https://programminghistorian.org/en/lessons/exploring-and-analyzing-network-data-with-python',
+ 'https://web.archive.org/web/20180820051835/http://6dfb.tumblr.com/post/164795439991/six-degrees-of-pennsylvania-william-penn-and']
+citation = [('J. R. Ladd, J. Otis, C. N. Warren, S. Weingart, "Exploring and analyzing network data with Python." Programming Historian 6 (2017)', 'https://doi.org/10.46430/phen0064'),
+ ('C. N. Warren, D. Shore, J. Otis, L. Wang, M. Finegold, C. Shalizi, "Six Degrees of Francis Bacon: a statistical method for reconstructing large historical social networks." Digital Humanities Quarterly 10(3) (2016)', 'https://digitalhumanities.org/dhq/vol/10/3/000244/000244.html')]
+icon_hash = '56a85c8e26855e083a2f78ac'
+upstream_license = ("Creative Commons Attribution 4.0 International (CC BY 4.0)",
+ "https://creativecommons.org/licenses/by/4.0/")
+upstream_prefix = 'https://programminghistorian.org/assets/exploring-and-analyzing-network-data-with-python'
+files = [(('quakers_nodelist.csv', 'quakers_edgelist.csv'), None, 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):
+ 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[0], "r") as f:
+ nodes = list(csv.reader(f))[1:]
+ with open_upstream_file(name, fnames[1], "r") as f:
+ edges = list(csv.reader(f))[1:]
+ idx = {r[0]: i for i, r in enumerate(nodes)}
+ g = Graph(directed=False)
+ g.add_vertex(len(nodes))
+ g.vp.name = g.new_vp("string", vals=[r[0] for r in nodes])
+ g.vp.historical_significance = g.new_vp("string", vals=[r[1] for r in nodes])
+ g.vp.gender = g.new_vp("string", vals=[r[2] for r in nodes])
+ g.vp.birth = g.new_vp("int", vals=[int(r[3]) for r in nodes])
+ g.vp.death = g.new_vp("int", vals=[int(r[4]) for r in nodes])
+ g.vp.sdfb_id = g.new_vp("int", vals=[int(r[5]) for r in nodes])
+ g.add_edge_list([(idx[a], idx[b]) for a, b in edges])
+ yield alt, g