Network Validation using the Spatial Coherence Framework.
Project description
Network Spatial Coherence
Python library to validate the spatial coherence of a network. It offers tools to analyze network properties, check how "Euclidean" the network is (spatial coherence), and to reconstruct the network. Networks can be both simulated (e.g. a KNN network) or imported.
Features
- Analyze the spatial coherence of a network
- Reconstruction images from purely network information
- Efficient graph loading and processing (using sparse matrices or getting a graph sample)
Install
Python 3.11 is reccomended, although older versions should work.
pip install git+https://github.com/DavidFernandezBonet/Spatial_Constant_Analysis.git
If you require authentication you can use a PAT (a github token) instead. Go to Developer settings > Personal access tokens > Generate new token and then save the token because it will not be displayed again. You should input it in this line of code
pip install git+https://<token>:x-oauth-basic@github.com/DavidFernandezBonet/Spatial_Constant_Analysis.git
Usage
For a detailed tutorial, see the Jupyter Notebook Tutorial in this repository.
- Access documentation for detailed API usage:
from network_spatial_coherence.docs_util import access_docs
access_docs()
- Minimum working example
from network_spatial_coherence import nsc_pipeline
from network_spatial_coherence import structure_and_args
structure_and_args.create_project_structure()
graph, args = nsc_pipeline.load_and_initialize_graph()
nsc_pipeline.run_pipeline(graph, args)
Contact
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
File details
Details for the file network_spatial_coherence-0.1.19.tar.gz
.
File metadata
- Download URL: network_spatial_coherence-0.1.19.tar.gz
- Upload date:
- Size: 4.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43a13fa3cf3431bd62fd793abd7f2e8f50f570f1fbdcdc46b6877d46c892489c |
|
MD5 | c42d8578a3ca4fb6b03cd63f34f4f455 |
|
BLAKE2b-256 | efe0f7ddee46a87253b3efc1eabe00139e3c687a24f419b4f887589e71e110f7 |
File details
Details for the file network_spatial_coherence-0.1.19-py3-none-any.whl
.
File metadata
- Download URL: network_spatial_coherence-0.1.19-py3-none-any.whl
- Upload date:
- Size: 4.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41d2b57186f81227f80af6a0f56c12b1e6204dfa145e165a9b7a772da4cad4a9 |
|
MD5 | 78a2ed967070800d91c3aff3c8848095 |
|
BLAKE2b-256 | 724327ebe8d7f89150b14253da1e2d44a4296025585285881e64b51a9f68f7c3 |