Skip to main content

graphtools

Project description

Latest PyPi version Latest Conda version Travis CI Build Read the Docs Coverage Status Twitter GitHub stars

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

Uploaded Source

Built Distribution

graphtools-1.3.1-py3-none-any.whl (39.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphtools-1.3.1.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

File hashes

Hashes for graphtools-1.3.1.tar.gz
Algorithm Hash digest
SHA256 4bac6e612ae4538c6ab88748a3cb46db5178c8aa13f534a594c73196e8f423d9
MD5 e76c7b63d58483088ffa3bdd98087c77
BLAKE2b-256 ad4ef5e88c4aaa646e1c25614ce9274e9de6548349f71f4f8792ae513fdbba0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: graphtools-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 39.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

File hashes

Hashes for graphtools-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b93b9823e6b72b6d98934067967c59fb3b785c7ff0d997322d1c6d5acbac1b33
MD5 087a8f34be6c938d567b880d86e2129e
BLAKE2b-256 28d43e0f973b84b892bb39414a11818ed40cf460ee8e3e9b9d8dd28eda832022

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