Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update repositories.py
  • Loading branch information
AdityaChaubeyIITM authored Mar 29, 2025
commit f95b283a79a193b88e09aacfc7342ee139eb7666
7 changes: 4 additions & 3 deletions src/igraph/io/repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
except ImportError:
os.system('pip install zstandard')
import zstandard as zstd
import igraph as ig

def _construct_graph_from_Netzschleuder(cls=ig.Graph, name: str = None, net: str = None) -> ig.Graph:
def _construct_graph_from_Netzschleuder(cls, name: str = None, net: str = None):
"""
Downloads, decompresses, and loads a graph from a .gml.zst file from Netzschleuder into an igraph.Graph.
Parameters:
Expand All @@ -35,7 +34,9 @@ def _construct_graph_from_Netzschleuder(cls=ig.Graph, name: str = None, net: str
raise ValueError(f"Dataset '{name}' does not exist at {dataset_url}.")
except:
raise ValueError(f"Dataset '{name}' does not exist at {dataset_url}.")


from igraph import Graph

# Check network file existence
file_url = f"{dataset_url}/files/{net}.gml.zst"
try:
Expand Down