Skip to main content

graphtools

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphtools-2.1.0.tar.gz (72.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

graphtools-2.1.0-py3-none-any.whl (50.1 kB view details)

Uploaded Python 3

File details

Details for the file graphtools-2.1.0.tar.gz.

File metadata

  • Download URL: graphtools-2.1.0.tar.gz
  • Upload date:
  • Size: 72.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for graphtools-2.1.0.tar.gz
Algorithm Hash digest
SHA256 ffeeb042b927422c990233e51fb7fe0afb42c4345ec1ca1d8926d9a0e6bd0fe8
MD5 ac3f0fb223e71fe3b81faff6464c1e59
BLAKE2b-256 9ae544da85efc1548f5e815f09a03b63f12d25537bdddb3b2a0dfd78b9c7842c

See more details on using hashes here.

File details

Details for the file graphtools-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: graphtools-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 50.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for graphtools-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90bf7f4804c9cc3df15af8b47fca12363f9aa4513ca5d83c318d65424c67be48
MD5 6d841e8f5e5f3358318afc9c9e4c1868
BLAKE2b-256 a12b55ce4d4d1e0baa9e9c87bec30302a4bafb289475181e500d3f20d045cdc7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page