History of gd2006_java
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/gd2006_java/__init__.py b/entries/gd2006_java/__init__.py
index 8ce062f..7ec80cb 100644
--- a/entries/gd2006_java/__init__.py
+++ b/entries/gd2006_java/__init__.py
@@ -28,7 +28,7 @@ The nodes have the property `name`, the fully qualified name of the class (e.g.
tags = ['Technological', 'Software', 'Unweighted']
url = 'https://web.archive.org/web/20220928003623/http://gd2006.iti.kit.edu/contest/details.php'
citation = [('"Graph Drawing Contest", 14th International Symposium on Graph Drawing (GD 2006), Karlsruhe, Germany (2006)', 'https://web.archive.org/web/20220928003623/http://gd2006.iti.kit.edu/contest/details.php')]
-icon_hash = '572791b3461efe0c7a675eba'
+date_added = '2026-10-25'
upstream_license = None
# The symposium's site (gd2006.iti.kit.edu) is no longer reachable; the files
# are obtained from the Internet Archive.
[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/gd2006_java/__init__.py b/entries/gd2006_java/__init__.py
index 2771e99..8ce062f 100644
--- a/entries/gd2006_java/__init__.py
+++ b/entries/gd2006_java/__init__.py
@@ -46,7 +46,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: gd2006_java 2b39ffe
diff --git a/entries/gd2006_java/__init__.py b/entries/gd2006_java/__init__.py
new file mode 100644
index 0000000..2771e99
--- /dev/null
+++ b/entries/gd2006_java/__init__.py
@@ -0,0 +1,68 @@
+#! /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 = "Java class compile-time dependencies (JDK 1.4.2)"
+description = """Directed network of compile-time dependencies among the classes of the core `java.*` packages of the Java Development Kit (JDK) 1.4.2, distributed as a data set for the graph drawing contest of the 14th International Symposium on Graph Drawing (GD 2006, Karlsruhe). Nodes are Java classes, and a directed edge $A \\to B$ means that class $A$ depends on class $B$ at compile time, i.e., that $A$ explicitly uses $B$, so that $B$ must be compiled for $A$ to be compiled. Only dependencies among classes in the `java.*` packages are included (the `javax.*` packages and any other classes are excluded), and classes without any dependency within this set were removed.
+
+The nodes have the property `name`, the fully qualified name of the class (e.g. `java.util.Calendar`).[^icon]
+
+[^icon]: Description obtained in part from the [ICON](https://icon.colorado.edu) project."""
+tags = ['Technological', 'Software', 'Unweighted']
+url = 'https://web.archive.org/web/20220928003623/http://gd2006.iti.kit.edu/contest/details.php'
+citation = [('"Graph Drawing Contest", 14th International Symposium on Graph Drawing (GD 2006), Karlsruhe, Germany (2006)', 'https://web.archive.org/web/20220928003623/http://gd2006.iti.kit.edu/contest/details.php')]
+icon_hash = '572791b3461efe0c7a675eba'
+upstream_license = None
+# The symposium's site (gd2006.iti.kit.edu) is no longer reachable; the files
+# are obtained from the Internet Archive.
+upstream_prefix = 'https://web.archive.org/web'
+files = [(('Nodes', 'Edges'), None, None)]
+archived_urls = {
+ 'Nodes': 'https://web.archive.org/web/20221202211041id_/http://gd2006.iti.kit.edu/contest/JCTData/Nodes',
+ 'Edges': 'https://web.archive.org/web/20221202193247id_/http://gd2006.iti.kit.edu/contest/JCTData/Edges'}
+
+def fetch_upstream(force=False):
+ return fetch_archived_files(__name__.split(".")[-1], archived_urls, force,
+ tries=4)
+
+@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 = [line.strip() for line in f if line.strip()]
+ idx = {c: i for i, c in enumerate(nodes)}
+ edges = []
+ with open_upstream_file(name, fnames[1], "r") as f:
+ for line in f:
+ if not line.strip():
+ continue
+ a, b = line.strip().split(" -> ")
+ edges.append((idx[a], idx[b]))
+ g = Graph(directed=True)
+ g.add_vertex(len(nodes))
+ g.vp.name = g.new_vp("string", vals=nodes)
+ g.add_edge_list(edges)
+ yield alt, g