Commit 5bbbfc4b authored by Tiago Peixoto's avatar Tiago Peixoto

collection: Update konect URL

parent f32baccc
......@@ -37,11 +37,10 @@ This module contains an assortment of useful networks.
Dictionary containing :class:`~graph_tool.Graph` objects, indexed by the
name of the graph, fetched from the `Koblenz Network Collection
<http://konect.uni-koblenz.de/>`_. See the website for a list of available
data. The key of the dictionary must correspond to the name of the file
minus the ``.tar.bz2`` part. This is a "lazy" dictionary, i.e. it only
downloads the graphs from the web when the items are accessed for the first
time.
<http://konect.cc/>`_. See the website for a list of available data. The key
of the dictionary must correspond to the name of the file minus the
``.tar.bz2`` part. This is a "lazy" dictionary, i.e. it only downloads the
graphs from the web when the items are accessed for the first time.
Examples
========
......
......@@ -93,7 +93,7 @@ def load_koblenz_dir(dirname):
def get_koblenz_network_data(name):
with tempfile.TemporaryFile(mode='w+b') as ftemp:
response = urlopen('http://konect.uni-koblenz.de/downloads/tsv/%s.tar.bz2' % name)
response = urlopen('http://konect.cc/files/download.tsv.%s.tar.bz2' % name)
buflen = 1 << 20
while True:
buf = response.read(buflen)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment