Skip to main content

graphtools

Project description

Latest PyPi version Latest Conda version Travis CI 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.4.1.tar.gz (47.3 kB view details)

Uploaded Source

Built Distribution

graphtools-1.4.1-py3-none-any.whl (39.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphtools-1.4.1.tar.gz
  • Upload date:
  • Size: 47.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.7

File hashes

Hashes for graphtools-1.4.1.tar.gz
Algorithm Hash digest
SHA256 169e4be6722a75236584cc7a16987bb04d9037549123e7c615f51e69ab145611
MD5 0d097256dade2e170a05ccc5ae40105b
BLAKE2b-256 07b6b6f7fd24de754255ee6ab8f03ef493be42c060e9191f9b2e6557aafe5b2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: graphtools-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 39.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.7

File hashes

Hashes for graphtools-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ea36a7a60a3fd5ea1b5c9c719b61f4372b344343150d87715d9036295358f50
MD5 b4f72709f933bb1d20cfa323f31526d8
BLAKE2b-256 1a4415f4920625c87b92a62900575c84c41cd9900b9abf5f41b7cacb9f767f2f

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