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:
pathstr

path to a file

Returns:
Graph

deserialized Graph

Examples

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