SPAtial GrapHs: nETworks, Topology, & Inference

Spaghetti is an open-source Python library for the analysis of network-based spatial data. Originating from the network module in PySAL (Python Spatial Analysis Library), it is under active development for the inclusion of newly proposed methods for building graph-theoretic networks and the analysis of network events. An installation guide, API reference, and usage tutorials are provided here through the links above.

Citing spaghetti

If you use PySAL-spaghetti in a scientific publication, we would appreciate using the following citation:

Bibtex entry:

  author   = {Gaboardi, James D. and Laura, Jay and Rey, Sergio and
              Wolf, Levi John and Folch, David C. and Kang, Wei and
              Stephens, Philip and Schmidt, Charles},
  month    = {oct},
  year     = {2018},
  title    = {pysal/spaghetti},
  url      = {},
  doi      = {10.5281/zenodo.1343650},
  keywords = {graph-theory,network-analysis,python,spatial-networks,topology}