Commit be6f450d authored by Tiago Peixoto's avatar Tiago Peixoto

collection: Revert KONECT url to http://konect.uni-koblenz.de

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