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

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-1.5.3.tar.gz (55.7 kB view details)

Uploaded Source

Built Distribution

graphtools-1.5.3-py3-none-any.whl (45.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphtools-1.5.3.tar.gz
  • Upload date:
  • Size: 55.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for graphtools-1.5.3.tar.gz
Algorithm Hash digest
SHA256 b35ae2974d24c507fe01b110d10b1d8c949e20bc49ff9d7d04f94849f9795907
MD5 3022a207588b72ea62074dad10a1d4fe
BLAKE2b-256 f2cdd1115be4cbd5cad8b1da4c4d92a6c35dd263d0f9b5eea47ed3d8d19674c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: graphtools-1.5.3-py3-none-any.whl
  • Upload date:
  • Size: 45.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for graphtools-1.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bb4477e98e8aa0dcd11ffd61b224853862f5fb1172db8a92d87a48e57436c11b
MD5 2d59569eb22bd2348714da3edafee411
BLAKE2b-256 6bd483d43ec3f3c1921d81fea68f3ecc9acf7a979a930402713774be56f95a23

See more details on using hashes here.

Supported by

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