iduedu.read_urban_graph

iduedu.read_urban_graph(path, *, validate=True)[source]

Read an UrbanGraph from an .urbangraph archive.

Parameters:
  • path (str | Path) – Source path with the .urbangraph suffix.

  • validate (bool) – Whether to validate the graph after reading.

Return type:

UrbanGraph

Returns:

Restored UrbanGraph instance.

Raises:
  • ValueError – If the archive is missing required members or uses an unsupported format version.

  • ImportError – If parquet support is not installed.