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

Uploaded Source

Built Distribution

graphtools-1.0.0-py3-none-any.whl (35.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphtools-1.0.0.tar.gz
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.3

File hashes

Hashes for graphtools-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d15e6da76fceeb5e04f5bbcafa4db622689a6e74f8bf4445f80d58c4065e718a
MD5 5dc09ea17504fac200511f8b2dbe2aee
BLAKE2b-256 4f7a950dc7f5ebda57c89ed67484c22d7f308e8a14589b8de71954e188e9bea4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: graphtools-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 35.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.3

File hashes

Hashes for graphtools-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8752aee1f78c30794257572e7fbf2e6185855d522e6b0f1baaa4a093f77df34
MD5 663be9665088e39c63bdc15d6c40db25
BLAKE2b-256 e3490c0a0a64a29c948fbee44a437dae711afb69b81d4d4042fa9efbe28c6320

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