Analysis of Network-constrained Spatial Data
Project description
pysal/spaghetti
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 example of a network's minimum spanning tree:
Examples
The following are a selection of some examples that can be launched individually as interactive binders from the links on their respective pages. Additional examples can be found in the Tutorials section of the documentation. See the pysal/notebooks
project for a jupyter-book
version of this repository.
Installation
As of version 1.5.3, spaghetti
officially supports Python 3.6, 3.7, 3.8, and 3.9. Please make sure that you are operating in a Python >= 3.6 environment.
Installing with conda
via conda-forge
(highly recommended)
To install spaghetti
and all its dependencies, we recommend using the conda
manager, specifically with the conda-forge
channel. This can be obtained by installing the Anaconda Distribution
(a free Python distribution for data science), or through miniconda
(minimal distribution only containing Python and the conda package manager).
Using conda
, spaghetti
can be installed as follows:
$ conda config --set channel_priority strict
$ conda install --channel conda-forge spaghetti
Also, geopandas
provides a nice example to create a fresh environment for working with spatial data.
Installing with PyPI
$ pip install spaghetti
or download the source distribution (.tar.gz
) and decompress it to your selected destination. Open a command shell and navigate to the decompressed folder.
$ pip install .
Warning
When installing via pip
, you have to ensure that the required dependencies for spaghetti
are installed on your operating system. Details on how to install these packages are linked below. Using conda
(above) avoids having to install the dependencies separately.
Install the most current development version of spaghetti
by running:
$ pip install git+https://github.com/pysal/spaghetti
Requirements
Soft Dependencies
Contribute
PySAL-spaghetti is under active development and contributors are welcome.
If you have any suggestions, feature requests, or bug reports, please open new issues on GitHub. To submit patches, please review PySAL's documentation for developers, the PySAL development guidelines, the spaghetti
contributing guidelines before opening a pull request. Once your changes get merged, you’ll automatically be added to the Contributors List.
Support
If you are having issues, please create an issue, start a discussion, or talk to us in the gitter room.
Code of Conduct
As a PySAL-federated project, spaghetti
follows the Code of Conduct under the PySAL governance model.
License
The project is licensed under the BSD 3-Clause license.
BibTeX Citation
If you use PySAL-spaghetti in a scientific publication, we would appreciate using the following citation:
@misc{Gaboardi2018,
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 = {https://github.com/pysal/spaghetti},
doi = {10.5281/zenodo.1343650},
keywords = {graph-theory,network-analysis,python,spatial-networks,topology}
}
Citing Work
- Lovelace, R. Open source tools for geographic analysis in transport planning. J Geogr Syst (2021). https://doi.org/10.1007/s10109-020-00342-2.
Funding
This project is/was partially funded through:
Atlanta Research Data Center: A Polygon-Based Approach to Spatial Network Allocation
National Science Foundation Award #1825768: National Historical Geographic Information System
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for spaghetti-1.5.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6530c94c3306f2660e708b8593b75068bed52b2ce3f615c5a9be41db92fe666b |
|
MD5 | b49b5622764ca96a2a2de758382af1b3 |
|
BLAKE2b-256 | 170fc12f82740c2927fd1bc807a9fae98a37d044907d4b7f54f7abac93930d14 |