History of gnutella
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] Fix parse bugs and improve descriptions and metadata 6bb6851
- parse fixes from the review of the descriptions, e.g. us_patents (directed), celegans_2019 (synapse direction), ecoli_transcription and yeast_transcription (regulator to target), bitcoin (direction, phantom node), ego_social (Google+ features and circles), scotus_majority, arxiv_authors and social_location (as in SNAP), caida_as, dnc, dom, mist, reuters and bibsonomy (names on the right nodes), uci_zoo - every description now states explicitly what the nodes and edges represent; corrected titles, years, tags, citations and licences - the "Hypergraph" tag is removed; very large entries are marked `huge = True` (see --skip-huge) - ICON ids of partial duplicates added (hiv_transmission, congress_bills, openflights, dutch_school)
diff --git a/entries/gnutella/__init__.py b/entries/gnutella/__init__.py
index 2191e2a..ef67704 100644
--- a/entries/gnutella/__init__.py
+++ b/entries/gnutella/__init__.py
@@ -19,7 +19,7 @@
from .. import *
title = "Gnutella p2p networks (2002)"
-description = r"""Snapshots of the Gnutella peer-to-peer file sharing network, collected in August 2002 and distributed by the Stanford Network Analysis Project (SNAP). Nodes are hosts in the Gnutella overlay network, and a directed edge represents a connection between two hosts. Each network is named after the day of August 2002 on which the snapshot was taken (`04`, `05`, `06`, `08`, `09`, `24`, `25`, `30` and `31`). The vertex property `name` holds the node ID of the source data."""
+description = r"""Snapshots of the Gnutella peer-to-peer file sharing network, collected in August 2002 and distributed by the Stanford Network Analysis Project (SNAP). Nodes are hosts in the Gnutella overlay network, and a directed edge represents a connection between two hosts (the meaning of the edge direction is not documented by the source). Each network is named after the day of August 2002 on which the snapshot was taken (`04`, `05`, `06`, `08`, `09`, `24`, `25`, `30` and `31`). The vertex property `name` holds the node ID of the source data."""
tags = ['Technological', 'Peer-to-peer', 'Unweighted']
url = ['https://snap.stanford.edu/data/p2p-Gnutella04.html',
'https://snap.stanford.edu/data/p2p-Gnutella05.html',
[entries] Fix parse bugs and improve the metadata of existing entries c996a0e
From a review of the dataset descriptions against the upstream sources and papers, and from user reports: - parse fixes (wrong edge direction or directedness, shifted or misnamed properties, merged node identities, duplicated or missing edges and nodes, wrong types), e.g. arxiv_citation (the HepTh dates were a copy of the HepPh ones; now from the KDD Cup 2003 data), eu_procurements, foursquare_global, hiv_transmission, genetic_multiplex, gnutella (adds the 05 snapshot), roadnet, macaque_neural, python_dependency - descriptions rewritten from the upstream sources, documenting every property - corrected titles, citations and DOIs, licences (ustream_license typo, the data's own terms), tags and ICON ids - url lists for entries with several sources or dataset pages - SocioPatterns entries moved to the site's new data location, with the daily networks of sp_infectious and sp_primary_school - the Michael Fire entries marked as orphans (served from the mirror) - redundant type forcings removed after the graph-tool coercion fixes
diff --git a/entries/gnutella/__init__.py b/entries/gnutella/__init__.py
index 22f6479..2191e2a 100644
--- a/entries/gnutella/__init__.py
+++ b/entries/gnutella/__init__.py
@@ -19,16 +19,23 @@
from .. import *
title = "Gnutella p2p networks (2002)"
-description = """A sequence of 9 snapshots of the Gnutella peer-to-peer file sharing network from 5-31 August 2002. Nodes are hosts in the Gnutella network topology and edges are connections between them.[^icon]
-[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
+description = r"""Snapshots of the Gnutella peer-to-peer file sharing network, collected in August 2002 and distributed by the Stanford Network Analysis Project (SNAP). Nodes are hosts in the Gnutella overlay network, and a directed edge represents a connection between two hosts. Each network is named after the day of August 2002 on which the snapshot was taken (`04`, `05`, `06`, `08`, `09`, `24`, `25`, `30` and `31`). The vertex property `name` holds the node ID of the source data."""
tags = ['Technological', 'Peer-to-peer', 'Unweighted']
-url = 'http://snap.stanford.edu/data/p2p-Gnutella04.html'
-citation = [('M. Ripeanu and I. Foster and A. Iamnitchi. "Mapping the Gnutella Network: Properties of Large-Scale Peer-to-Peer Systems and Implications for System Design." IEEE Internet Comp. Journal 6(1), 50-57 (2002).', 'https://doi.org/10.1007/3-540-45748-8_8')]
+url = ['https://snap.stanford.edu/data/p2p-Gnutella04.html',
+ 'https://snap.stanford.edu/data/p2p-Gnutella05.html',
+ 'https://snap.stanford.edu/data/p2p-Gnutella06.html',
+ 'https://snap.stanford.edu/data/p2p-Gnutella08.html',
+ 'https://snap.stanford.edu/data/p2p-Gnutella09.html',
+ 'https://snap.stanford.edu/data/p2p-Gnutella24.html',
+ 'https://snap.stanford.edu/data/p2p-Gnutella25.html',
+ 'https://snap.stanford.edu/data/p2p-Gnutella30.html',
+ 'https://snap.stanford.edu/data/p2p-Gnutella31.html']
+citation = [('M. Ripeanu, A. Iamnitchi, and I. Foster, "Mapping the Gnutella Network: Properties of Large-Scale Peer-to-Peer Systems and Implications for System Design." IEEE Internet Computing 6(1), 50-57 (2002).', 'https://doi.org/10.1109/4236.978369')]
icon_hash = '56a85c8e26855e083a2f78bc'
-ustream_license = None
+upstream_license = None
upstream_prefix = 'https://snap.stanford.edu/data'
files = [(f'p2p-Gnutella{d}.txt.gz', f"{d}", "snap")
- for d in ["04", "06", "08", "09", "24", "25", "30", "31"]]
+ for d in ["04", "05", "06", "08", "09", "24", "25", "30", "31"]]
def fetch_upstream(force=False):
return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
@@ -48,4 +55,8 @@ def parse(alts=None):
with ExitStack() as stack:
fs = [stack.enter_context(open_upstream_file(name, fn, "rb")) for fn in fnames]
g = parse_graph(fs, fmt, directed=True)
+ g.vp.name = g.new_vp("int", vals=g.get_vertices())
+ # some node IDs are unused in the source data (3 in `04`)
+ g = GraphView(g, vfilt=g.get_total_degrees(g.get_vertices()) > 0)
+ g = Graph(g, prune=True)
yield alt, g
Update copyright information 73a4f0d
diff --git a/entries/gnutella/__init__.py b/entries/gnutella/__init__.py
index 43fab6e..22f6479 100644
--- a/entries/gnutella/__init__.py
+++ b/entries/gnutella/__init__.py
@@ -1,7 +1,7 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2020-2024 Tiago de Paula Peixoto <tiago@skewed.de>
+# 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
Update copyright information 3d288ea
diff --git a/entries/gnutella/__init__.py b/entries/gnutella/__init__.py
index 71aebdd..43fab6e 100644
--- a/entries/gnutella/__init__.py
+++ b/entries/gnutella/__init__.py
@@ -1,7 +1,7 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2020-2023 Tiago de Paula Peixoto <tiago@skewed.de>
+# Copyright (C) 2020-2024 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
Update copyright information 8d005ae
diff --git a/entries/gnutella/__init__.py b/entries/gnutella/__init__.py
index c1c2b00..71aebdd 100644
--- a/entries/gnutella/__init__.py
+++ b/entries/gnutella/__init__.py
@@ -1,7 +1,7 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2021 Tiago de Paula Peixoto <tiago@skewed.de>
+# Copyright (C) 2020-2023 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
Update copyright info db2efcc
diff --git a/entries/gnutella/__init__.py b/entries/gnutella/__init__.py
index 960108e..c1c2b00 100644
--- a/entries/gnutella/__init__.py
+++ b/entries/gnutella/__init__.py
@@ -1,7 +1,7 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2020 Tiago de Paula Peixoto <tiago@skewed.de>
+# Copyright (C) 2021 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
Update citations to use DOIs e878874
diff --git a/entries/gnutella/__init__.py b/entries/gnutella/__init__.py
index 4c0fd6b..960108e 100644
--- a/entries/gnutella/__init__.py
+++ b/entries/gnutella/__init__.py
@@ -23,7 +23,7 @@ description = """A sequence of 9 snapshots of the Gnutella peer-to-peer file sha
[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
tags = ['Technological', 'Peer-to-peer', 'Unweighted']
url = 'http://snap.stanford.edu/data/p2p-Gnutella04.html'
-citation = [('M. Ripeanu and I. Foster and A. Iamnitchi. "Mapping the Gnutella Network: Properties of Large-Scale Peer-to-Peer Systems and Implications for System Design." IEEE Internet Comp. Journal 6(1), 50-57 (2002).', 'http://people.cs.uchicago.edu/~matei/PAPERS/ic.pdf')]
+citation = [('M. Ripeanu and I. Foster and A. Iamnitchi. "Mapping the Gnutella Network: Properties of Large-Scale Peer-to-Peer Systems and Implications for System Design." IEEE Internet Comp. Journal 6(1), 50-57 (2002).', 'https://doi.org/10.1007/3-540-45748-8_8')]
icon_hash = '56a85c8e26855e083a2f78bc'
ustream_license = None
upstream_prefix = 'https://snap.stanford.edu/data'
Change license from GPLv3 to AGPLv3 d754be5
diff --git a/entries/gnutella/__init__.py b/entries/gnutella/__init__.py
index 87ffd65..4c0fd6b 100644
--- a/entries/gnutella/__init__.py
+++ b/entries/gnutella/__init__.py
@@ -3,18 +3,18 @@
#
# Copyright (C) 2020 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 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 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 General Public License for more details.
+# 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 General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# 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 *
Add explicit attribution to descriptions obtained from ICON 1645314
diff --git a/entries/gnutella/__init__.py b/entries/gnutella/__init__.py
index 8323481..87ffd65 100644
--- a/entries/gnutella/__init__.py
+++ b/entries/gnutella/__init__.py
@@ -19,7 +19,8 @@
from .. import *
title = "Gnutella p2p networks (2002)"
-description = "A sequence of 9 snapshots of the Gnutella peer-to-peer file sharing network from 5-31 August 2002. Nodes are hosts in the Gnutella network topology and edges are connections between them."
+description = """A sequence of 9 snapshots of the Gnutella peer-to-peer file sharing network from 5-31 August 2002. Nodes are hosts in the Gnutella network topology and edges are connections between them.[^icon]
+[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
tags = ['Technological', 'Peer-to-peer', 'Unweighted']
url = 'http://snap.stanford.edu/data/p2p-Gnutella04.html'
citation = [('M. Ripeanu and I. Foster and A. Iamnitchi. "Mapping the Gnutella Network: Properties of Large-Scale Peer-to-Peer Systems and Implications for System Design." IEEE Internet Comp. Journal 6(1), 50-57 (2002).', 'http://people.cs.uchicago.edu/~matei/PAPERS/ic.pdf')]
Initial commit cc85872
diff --git a/entries/gnutella/__init__.py b/entries/gnutella/__init__.py
new file mode 100644
index 0000000..8323481
--- /dev/null
+++ b/entries/gnutella/__init__.py
@@ -0,0 +1,50 @@
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2020 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 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+from .. import *
+
+title = "Gnutella p2p networks (2002)"
+description = "A sequence of 9 snapshots of the Gnutella peer-to-peer file sharing network from 5-31 August 2002. Nodes are hosts in the Gnutella network topology and edges are connections between them."
+tags = ['Technological', 'Peer-to-peer', 'Unweighted']
+url = 'http://snap.stanford.edu/data/p2p-Gnutella04.html'
+citation = [('M. Ripeanu and I. Foster and A. Iamnitchi. "Mapping the Gnutella Network: Properties of Large-Scale Peer-to-Peer Systems and Implications for System Design." IEEE Internet Comp. Journal 6(1), 50-57 (2002).', 'http://people.cs.uchicago.edu/~matei/PAPERS/ic.pdf')]
+icon_hash = '56a85c8e26855e083a2f78bc'
+ustream_license = None
+upstream_prefix = 'https://snap.stanford.edu/data'
+files = [(f'p2p-Gnutella{d}.txt.gz', f"{d}", "snap")
+ for d in ["04", "06", "08", "09", "24", "25", "30", "31"]]
+
+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
+ 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 = parse_graph(fs, fmt, directed=True)
+ yield alt, g