Skip to main content
Latest PyPi version Latest Conda version Github Actions Build Read the Docs Coverage Status Twitter GitHub stars Code style: black

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)

Source distribution for graphtools 2.1.0
File Size Uploaded
graphtools-2.1.0.tar.gz 72.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for graphtools 2.1.0
File Interpreter ABI Platform
graphtools-2.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.0

2 release files

1.5.3

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.2.1

3 release files

0.2.0

2 release files

0.1.10

1 release file

0.1.9

1 release file

0.1.8.1

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page