spaghetti logo


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.


Development of spaghetti is hosted on GitHub.

Citing spaghetti

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

  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}

Citing Work


This project is/was partially funded through:


National Science Foundation Award #1825768: National Historical Geographic Information System

PySAL Logo