logo Netzschleuder network catalog, repository, and centrifuge

History of caviar

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/caviar/__init__.py b/entries/caviar/__init__.py
index 9a47515..1f90f5c 100644
--- a/entries/caviar/__init__.py
+++ b/entries/caviar/__init__.py
@@ -28,7 +28,7 @@ tags = ['Social', 'Communication', 'Weighted', 'Temporal']
 url = 'https://sites.google.com/site/ucinetsoftware/datasets/covert-networks/caviar'
 citation = [('C. Morselli and K. Petit, "Law-enforcement disruption of a drug importation network." Global Crime 8(2), 109-130 (2007)', 'https://doi.org/10.1080/17440570701362208'),
             ('C. Morselli, "Inside Criminal Networks." Springer, New York (2009)', 'https://doi.org/10.1007/978-0-387-09526-4')]
-icon_hash = '59fe792dee01e9ab21ac7fb0'
+date_added = '2026-10-25'
 upstream_license = None
 upstream_prefix = 'gdrive://'
 files = [('1Mbyd0O4q3KJKh9ve5sRwMArmLxzSIsKO:zip:CAVIAR1.csv', 'phase1', {'directed': True}),
[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/caviar/__init__.py b/entries/caviar/__init__.py
index 7f43d97..9a47515 100644
--- a/entries/caviar/__init__.py
+++ b/entries/caviar/__init__.py
@@ -52,7 +52,6 @@ def fetch_upstream(force=False):
 @coerce_props()
 @annotate()
 def parse(alts=None):
-    global files
     name = __name__.split(".")[-1]
     for fnames, alt, spec in files:
         if alts is not None and alt not in alts:
[entries] New entry: caviar by Tiago de Paula Peixoto f6be9a9
diff --git a/entries/caviar/__init__.py b/entries/caviar/__init__.py
new file mode 100644
index 0000000..7f43d97
--- /dev/null
+++ b/entries/caviar/__init__.py
@@ -0,0 +1,65 @@
+#! /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 = 'Caviar drug trafficking network (1994-1996)'
+description = """Directed networks of communication among participants in a drug importation network (hashish and cocaine) operating out of Montreal, Canada, targeted by Project Caviar, a joint investigation by the Montreal Police, the Royal Canadian Mounted Police and law-enforcement agencies of several other countries between 1994 and 1996. Instead of arresting participants, the investigation used a "seize and wait" strategy: 11 drug consignments were seized over two years, and arrests took place only at the end, making it possible to study the evolution of the network under disruption (Morselli and Petit, 2007).
+
+The data come from evidence submitted during the trials of 22 participants, comprising 4279 paragraphs of transcripts of intercepted telephone conversations. Of the 318 individuals named in them, the 110 who took part in the trafficking operations are included. Nodes are participants (numbered in `name`, as in the source), and a directed edge indicates communication from one participant to another, with the edge property `weight` giving the level of communication activity. The networks `phase1` to `phase11` correspond to the 11 two-month phases of the investigation, and `full` aggregates all of them. Data reconstructed from the appendix of Morselli's book "Inside Criminal Networks" (2009) by the UCINET datasets collection (University of Manchester).[^ucinet]
+
+[^ucinet]: Description obtained in part from the [UCINET datasets page](https://sites.google.com/site/ucinetsoftware/datasets/covert-networks/caviar)."""
+tags = ['Social', 'Communication', 'Weighted', 'Temporal']
+url = 'https://sites.google.com/site/ucinetsoftware/datasets/covert-networks/caviar'
+citation = [('C. Morselli and K. Petit, "Law-enforcement disruption of a drug importation network." Global Crime 8(2), 109-130 (2007)', 'https://doi.org/10.1080/17440570701362208'),
+            ('C. Morselli, "Inside Criminal Networks." Springer, New York (2009)', 'https://doi.org/10.1007/978-0-387-09526-4')]
+icon_hash = '59fe792dee01e9ab21ac7fb0'
+upstream_license = None
+upstream_prefix = 'gdrive://'
+files = [('1Mbyd0O4q3KJKh9ve5sRwMArmLxzSIsKO:zip:CAVIAR1.csv', 'phase1', {'directed': True}),
+         ('1Mbyd0O4q3KJKh9ve5sRwMArmLxzSIsKO:zip:CAVIAR2.csv', 'phase2', {'directed': True}),
+         ('1Mbyd0O4q3KJKh9ve5sRwMArmLxzSIsKO:zip:CAVIAR3.csv', 'phase3', {'directed': True}),
+         ('1Mbyd0O4q3KJKh9ve5sRwMArmLxzSIsKO:zip:CAVIAR4.csv', 'phase4', {'directed': True}),
+         ('1Mbyd0O4q3KJKh9ve5sRwMArmLxzSIsKO:zip:CAVIAR5.csv', 'phase5', {'directed': True}),
+         ('1Mbyd0O4q3KJKh9ve5sRwMArmLxzSIsKO:zip:CAVIAR6.csv', 'phase6', {'directed': True}),
+         ('1Mbyd0O4q3KJKh9ve5sRwMArmLxzSIsKO:zip:CAVIAR7.csv', 'phase7', {'directed': True}),
+         ('1Mbyd0O4q3KJKh9ve5sRwMArmLxzSIsKO:zip:CAVIAR8.csv', 'phase8', {'directed': True}),
+         ('1Mbyd0O4q3KJKh9ve5sRwMArmLxzSIsKO:zip:CAVIAR9.csv', 'phase9', {'directed': True}),
+         ('1Mbyd0O4q3KJKh9ve5sRwMArmLxzSIsKO:zip:CAVIAR10.csv', 'phase10', {'directed': True}),
+         ('1Mbyd0O4q3KJKh9ve5sRwMArmLxzSIsKO:zip:CAVIAR11.csv', 'phase11', {'directed': True}),
+         ('1Mbyd0O4q3KJKh9ve5sRwMArmLxzSIsKO:zip:CAVIAR_FULL.csv', 'full', {'directed': True})]
+
+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, spec in files:
+        if alts is not None and alt not in alts:
+            continue
+        if isinstance(fnames, str):
+            fnames = [fnames]
+        with ExitStack() as stack:
+            fs = [stack.enter_context(open_upstream_file(name, fn, "rb")) for fn in fnames]
+            g = ucinet_graph(fs, **spec)
+        yield alt, g