graphtools
Tools for building and manipulating graphs in Python.
Installation
graphtools is available on pip. Install by running the following in a terminal:
pip install --user graphtools
Alternatively, graphtools can be installed using Conda (most easily obtained via the Miniconda Python distribution):
conda install -c conda-forge graphtools
Or, to install the latest version from github:
pip install --user git+git://github.com/KrishnaswamyLab/graphtools.git
For improved performance with large datasets, install with numba acceleration:
pip install --user graphtools[fast]
Usage example
The graphtools.Graph class provides an all-in-one interface for k-nearest neighbors, mutual nearest neighbors, exact (pairwise distances) and landmark graphs.
Use it as follows:
from sklearn import datasets import graphtools digits = datasets.load_digits() G = graphtools.Graph(digits['data']) K = G.kernel P = G.diff_op G = graphtools.Graph(digits['data'], n_landmark=300) L = G.landmark_op
Help
If you have any questions or require assistance using graphtools, please contact us at https://krishnaswamylab.org/get-help
Metadata
Release files for graphtools 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| graphtools-2.1.0.tar.gz | 72.0 kB | Without provenance | Details for graphtools-2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| graphtools-2.1.0-py3-none-any.whl | Python 3 | none | any | Details for graphtools-2.1.0-py3-none-any.whl |
Total release size: 122.2 kB
Release files / graphtools-2.1.0.tar.gz
| Download URL | graphtools-2.1.0.tar.gz |
|---|---|
| Size | 72.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffeeb042b927422c990233e51fb7fe0afb42c4345ec1ca1d8926d9a0e6bd0fe8
|
|
BLAKE2b-256 checksum How to use checksums |
9ae544da85efc1548f5e815f09a03b63f12d25537bdddb3b2a0dfd78b9c7842c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / graphtools-2.1.0-py3-none-any.whl
| Download URL | graphtools-2.1.0-py3-none-any.whl |
|---|---|
| Size | 50.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90bf7f4804c9cc3df15af8b47fca12363f9aa4513ca5d83c318d65424c67be48
|
|
BLAKE2b-256 checksum How to use checksums |
a12b55ce4d4d1e0baa9e9c87bec30302a4bafb289475181e500d3f20d045cdc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for graphtools 2.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.