History of enron_priebe
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/enron_priebe/__init__.py b/entries/enron_priebe/__init__.py
index 3f9c69d..f5d7236 100644
--- a/entries/enron_priebe/__init__.py
+++ b/entries/enron_priebe/__init__.py
@@ -34,7 +34,7 @@ tags = ['Social', 'Communication', 'Unweighted', 'Multigraph', 'Timestamps', 'Me
url = 'https://cran.r-project.org/package=networkDynamicData'
citation = [('C. E. Priebe, J. M. Conroy, D. J. Marchette, Y. Park, "Scan Statistics on Enron Graphs." Computational and Mathematical Organization Theory 11(3), 229-247 (2005)', 'https://doi.org/10.1007/s10588-005-5378-z'),
('S. Bender-deMoll et al., "networkDynamicData: Dynamic (Longitudinal) Network Datasets." R package (2016)', 'https://doi.org/10.32614/CRAN.package.networkDynamicData')]
-icon_hash = '595b1cd5549f067e0263b53a'
+date_added = '2026-10-25'
upstream_license = ("CC BY-SA 4.0", "https://creativecommons.org/licenses/by-sa/4.0/")
# CRAN archive of networkDynamicData, version 0.2.1 (the data file is
# identical in the current version 0.3.0)
[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/enron_priebe/__init__.py b/entries/enron_priebe/__init__.py
index 8ec74ad..3f9c69d 100644
--- a/entries/enron_priebe/__init__.py
+++ b/entries/enron_priebe/__init__.py
@@ -23,8 +23,13 @@ description = """Directed temporal network of emails among 184 email addresses o
The network has the following properties:
-- Nodes: `email_id`, the address of the employee without the "@enron.com" part; `name`, the name of the person associated with the address; `role`, the role of the person (e.g. "Employee", "Vice President", "Director", "Trader"); `dept`, the department or subsidiary of the person. The names, roles and departments are missing (empty) or redacted for some or many nodes.
-- Edges: `time`, the time of the email, in Unix time (seconds since 1970-01-01); `to`, `cc`, `bcc`, binary flags of the email as given by the source data, without documentation (the large majority of the edges have only `cc` set, and nearly all the others have both `to` and `bcc` set, so that the flags may not be encoded as their names suggest); `count`, an integer given for each email by the source data, also without documentation (possibly the number of copies of the email record in the corpus)."""
+- (Node) `email_id`: the address of the employee without the "@enron.com" part.
+- (Node) `name`: the name of the person associated with the address.
+- (Node) `role`: the role of the person (e.g. "Employee", "Vice President", "Director", "Trader").
+- (Node) `dept`: the department or subsidiary of the person. The names, roles and departments are missing (empty) or redacted for some or many nodes.
+- (Edge) `time`: the time of the email, in Unix time (seconds since 1970-01-01).
+- (Edge) `to`, `cc`, `bcc`: binary flags of the email as given by the source data, without documentation (the large majority of the edges have only `cc` set, and nearly all the others have both `to` and `bcc` set, so that the flags may not be encoded as their names suggest).
+- (Edge) `count`: an integer given for each email by the source data, also without documentation (possibly the number of copies of the email record in the corpus)."""
tags = ['Social', 'Communication', 'Unweighted', 'Multigraph', 'Timestamps', 'Metadata']
url = 'https://cran.r-project.org/package=networkDynamicData'
citation = [('C. E. Priebe, J. M. Conroy, D. J. Marchette, Y. Park, "Scan Statistics on Enron Graphs." Computational and Mathematical Organization Theory 11(3), 229-247 (2005)', 'https://doi.org/10.1007/s10588-005-5378-z'),
[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/enron_priebe/__init__.py b/entries/enron_priebe/__init__.py
index 05116dd..8ec74ad 100644
--- a/entries/enron_priebe/__init__.py
+++ b/entries/enron_priebe/__init__.py
@@ -44,7 +44,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: enron_priebe 501291f
diff --git a/entries/enron_priebe/__init__.py b/entries/enron_priebe/__init__.py
new file mode 100644
index 0000000..05116dd
--- /dev/null
+++ b/entries/enron_priebe/__init__.py
@@ -0,0 +1,78 @@
+#! /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 = "Enron email network of Priebe et al. (1998-2002)"
+description = """Directed temporal network of emails among 184 email addresses of the Enron email corpus, as prepared by C. E. Priebe, J. M. Conroy, D. J. Marchette and Y. Park for their study of anomaly detection with scan statistics, in the version distributed by the R package networkDynamicData. The Enron corpus contains about 0.5 million messages from the mailboxes of about 150 Enron employees (mostly senior management, but also energy traders, executive assistants, etc.), which were made public by the US Federal Energy Regulatory Commission during its investigation of the company, and later distributed by William Cohen at Carnegie Mellon University. Priebe et al. obtained 184 unique addresses from the "From" line of the emails in the "Sent" folders, after manually removing addresses clearly not associated with the 150 users. Nodes are these addresses, and each directed edge is an email from the source to the target, with its time; an email to several recipients corresponds to several edges with the same time, and repeated edges between the same pair of addresses correspond to different emails. There are 3,129 distinct ordered pairs of addresses (including 119 self-loops, i.e. emails sent to oneself), and 38,184 email edges. Some of the timestamps are clearly invalid: 53 email edges have the placeholder time 315522000 (1979-12-31), and Priebe et al. restrict their analyses to the 189 weeks from 1998 to 2002; the observation period declared in the data is from 1998-11-13 to 2002-06-21. No email contents are included.
+
+The network has the following properties:
+
+- Nodes: `email_id`, the address of the employee without the "@enron.com" part; `name`, the name of the person associated with the address; `role`, the role of the person (e.g. "Employee", "Vice President", "Director", "Trader"); `dept`, the department or subsidiary of the person. The names, roles and departments are missing (empty) or redacted for some or many nodes.
+- Edges: `time`, the time of the email, in Unix time (seconds since 1970-01-01); `to`, `cc`, `bcc`, binary flags of the email as given by the source data, without documentation (the large majority of the edges have only `cc` set, and nearly all the others have both `to` and `bcc` set, so that the flags may not be encoded as their names suggest); `count`, an integer given for each email by the source data, also without documentation (possibly the number of copies of the email record in the corpus)."""
+tags = ['Social', 'Communication', 'Unweighted', 'Multigraph', 'Timestamps', 'Metadata']
+url = 'https://cran.r-project.org/package=networkDynamicData'
+citation = [('C. E. Priebe, J. M. Conroy, D. J. Marchette, Y. Park, "Scan Statistics on Enron Graphs." Computational and Mathematical Organization Theory 11(3), 229-247 (2005)', 'https://doi.org/10.1007/s10588-005-5378-z'),
+ ('S. Bender-deMoll et al., "networkDynamicData: Dynamic (Longitudinal) Network Datasets." R package (2016)', 'https://doi.org/10.32614/CRAN.package.networkDynamicData')]
+icon_hash = '595b1cd5549f067e0263b53a'
+upstream_license = ("CC BY-SA 4.0", "https://creativecommons.org/licenses/by-sa/4.0/")
+# CRAN archive of networkDynamicData, version 0.2.1 (the data file is
+# identical in the current version 0.3.0)
+upstream_prefix = 'https://cran.r-project.org/src/contrib/Archive/networkDynamicData'
+files = [('networkDynamicData_0.2.1.tar.gz:networkDynamicData/data/enronEmails.rda', 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, "rb") as f:
+ r = network_from_rdata(read_rdata(f)["enronEmails"])
+ g = Graph(directed=bool(r["gal"]["directed"][0]))
+ g.add_vertex(int(r["gal"]["n"][0]))
+ for k, rk in [("email_id", "email_id"), ("name", "person_name"),
+ ("role", "role"), ("dept", "dept")]:
+ g.vp[k] = g.new_vp("string", vals=[a[rk][0] or "" for a in r["vattrs"]])
+ edges = []
+ for s, t, a in r["edges"]:
+ # "active" is the (k x 2) matrix of spells (onset, terminus), in
+ # column-major order, with onset == terminus for each email;
+ # the TEA attributes are lists of values, one per spell
+ spells, sa = a["active"]
+ k = sa["dim"][0]
+ tea = [[int(v[0]) for v in a[x][0]] for x in
+ ["TO.active", "CC.active", "BCC.active", "count.active"]]
+ for i in range(k):
+ edges.append((s, t, int(spells[i]), *[x[i] for x in tea]))
+ edges.sort(key=lambda e: e[2])
+ g.ep.time = g.new_ep("int64_t")
+ g.ep.to = g.new_ep("bool")
+ g.ep.cc = g.new_ep("bool")
+ g.ep.bcc = g.new_ep("bool")
+ g.ep.count = g.new_ep("int")
+ g.add_edge_list(edges, eprops=[g.ep.time, g.ep.to, g.ep.cc, g.ep.bcc,
+ g.ep.count])
+ yield alt, g