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

Uploaded Source

Built Distribution

graphtools-1.4.2-py3-none-any.whl (40.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphtools-1.4.2.tar.gz
  • Upload date:
  • Size: 51.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.5.6

File hashes

Hashes for graphtools-1.4.2.tar.gz
Algorithm Hash digest
SHA256 094a7c975ebbeb57e86030a591ac7ac89c9aed2db78632dcfd3921637124f1fa
MD5 933092d6665a848a4ee12d92a78a7070
BLAKE2b-256 70991371ab24e47929331c3f3ca4ff5c9687a862e1191c0c318584a2b8e81aec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: graphtools-1.4.2-py3-none-any.whl
  • Upload date:
  • Size: 40.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.5.6

File hashes

Hashes for graphtools-1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6bbc103399d61f5c3b0c8bb44bcecb6805763060bedf967653725a477bcf8610
MD5 949de1152e719f8383922d9fb5b260fb
BLAKE2b-256 39b5f442c740cbbfcb0a828b3c337b6fbf1cd1d051abf609f1dfaa6ec51dc69e

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