History of imrich_bibliography
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 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/imrich_bibliography/__init__.py b/entries/imrich_bibliography/__init__.py
index d6ca7f9..70c30b0 100644
--- a/entries/imrich_bibliography/__init__.py
+++ b/entries/imrich_bibliography/__init__.py
@@ -19,7 +19,7 @@
from .. import *
title = 'Graph products bibliography (1999)'
-description = """A bipartite network of authors and works from the bibliography of the book *Product Graphs: Structure and Recognition* by W. Imrich and S. Klavžar. An edge connects an author to a work (paper or book) of which he or she is an author or coauthor. The data were distributed in Pajek format on the Pajek datasets page of V. Batagelj and A. Mrvar, from which this version was obtained.
+description = """A bipartite network of authors and works from the bibliography of the book *Product Graphs: Structure and Recognition* by W. Imrich and S. Klavžar. An edge connects an author to a work (paper or book) of which he or she is an author or coauthor.
The network has the following properties:
[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/imrich_bibliography/__init__.py b/entries/imrich_bibliography/__init__.py
index 513da0d..d6ca7f9 100644
--- a/entries/imrich_bibliography/__init__.py
+++ b/entries/imrich_bibliography/__init__.py
@@ -28,7 +28,7 @@ The network has the following properties:
tags = ['Social', 'Collaboration', 'Unweighted', 'Metadata']
url = 'https://web.archive.org/web/20040115072802/http://vlado.fmf.uni-lj.si/pub/networks/data/2mode/Sandi/Sandi.htm'
citation = [('W. Imrich, S. Klavžar, "Product Graphs: Structure and Recognition." Wiley, New York (2000)', 'https://web.archive.org/web/20040115072802/http://vlado.fmf.uni-lj.si/pub/networks/data/2mode/Sandi/Sandi.htm')]
-icon_hash = '58adcd50a411221d0e7c67f5'
+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) 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/imrich_bibliography/__init__.py b/entries/imrich_bibliography/__init__.py
index 30d18c7..513da0d 100644
--- a/entries/imrich_bibliography/__init__.py
+++ b/entries/imrich_bibliography/__init__.py
@@ -23,7 +23,8 @@ description = """A bipartite network of authors and works from the bibliography
The network has the following properties:
-- Nodes: `name`, the name of the author, or the label of the work (as in the reference list of the book); `is_author`, whether the node is an author (otherwise a work)."""
+- (Node) `name`: the name of the author, or the label of the work (as in the reference list of the book).
+- (Node) `is_author`: whether the node is an author (otherwise a work)."""
tags = ['Social', 'Collaboration', 'Unweighted', 'Metadata']
url = 'https://web.archive.org/web/20040115072802/http://vlado.fmf.uni-lj.si/pub/networks/data/2mode/Sandi/Sandi.htm'
citation = [('W. Imrich, S. Klavžar, "Product Graphs: Structure and Recognition." Wiley, New York (2000)', 'https://web.archive.org/web/20040115072802/http://vlado.fmf.uni-lj.si/pub/networks/data/2mode/Sandi/Sandi.htm')]
[entries] New entry: imrich_bibliography cdf58d9
diff --git a/entries/imrich_bibliography/__init__.py b/entries/imrich_bibliography/__init__.py
new file mode 100644
index 0000000..30d18c7
--- /dev/null
+++ b/entries/imrich_bibliography/__init__.py
@@ -0,0 +1,48 @@
+#! /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 = 'Graph products bibliography (1999)'
+description = """A bipartite network of authors and works from the bibliography of the book *Product Graphs: Structure and Recognition* by W. Imrich and S. Klavžar. An edge connects an author to a work (paper or book) of which he or she is an author or coauthor. The data were distributed in Pajek format on the Pajek datasets page of V. Batagelj and A. Mrvar, from which this version was obtained.
+
+The network has the following properties:
+
+- Nodes: `name`, the name of the author, or the label of the work (as in the reference list of the book); `is_author`, whether the node is an author (otherwise a work)."""
+tags = ['Social', 'Collaboration', 'Unweighted', 'Metadata']
+url = 'https://web.archive.org/web/20040115072802/http://vlado.fmf.uni-lj.si/pub/networks/data/2mode/Sandi/Sandi.htm'
+citation = [('W. Imrich, S. Klavžar, "Product Graphs: Structure and Recognition." Wiley, New York (2000)', 'https://web.archive.org/web/20040115072802/http://vlado.fmf.uni-lj.si/pub/networks/data/2mode/Sandi/Sandi.htm')]
+icon_hash = '58adcd50a411221d0e7c67f5'
+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/20041223165353id_/http://vlado.fmf.uni-lj.si/pub/networks/data/2mode/Sandi'
+files = [('sandi.net', 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):
+ name = __name__.split(".")[-1]
+ items = load_pajek(name, 'sandi.net')
+ g = pajek_graph(get_pajek_item(items, "network"), two_mode="is_author")
+ yield None, g