libpysal.graph.read_gal

libpysal.graph.read_gal(path)[source]

Read Graph from a GAL file

The reader tries to infer the dtype of IDs. In case of unsuccessful casting to int, it will fall back to string.

Parameters:
path : str

path to a file

Returns:

deserialized Graph

Return type:

Graph

Examples

>>> graph.read_parquet("contiguity.gal")