cfpq_data.dataset.download#
- download(name: str) Path[source]#
Download graph data from dataset.
The archive is extracted to a directory named after the graph (the internal directory of the archive is normalized to the graph name, so archives with a different internal layout, e.g.
cactus_field_sensitive_alias, extract cleanly).- Parameters:
- namestr
The name of the graph from the dataset.
- Returns:
- pathPath
Path to the directory with the graph data.
Examples
>>> from cfpq_data import * >>> path = download("generations") >>> sorted(p.name for p in path.iterdir()) ['README.md', 'grammar', 'graph']