Skip to main content

graphtools

Project description

Travis CI Build Latest PyPi version 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

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

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

Uploaded Source

File details

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

File metadata

  • Download URL: graphtools-0.1.0.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for graphtools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3a8f200d900dffb148a72da7ebd9dba21d32a46a8454ed3a0f01f063d67ce489
MD5 05a4fb9a00499809187cdd12a4c71d42
BLAKE2b-256 74e9fc086ef9df0c3e5b498803bc4fc15ca41672706cd5763801b7e15b2b8c15

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