Skip to main content

graphtools

Project description

Latest PyPi version Travis CI Build 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.2.tar.gz (20.2 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for graphtools-0.1.2.tar.gz
Algorithm Hash digest
SHA256 be92695dd3544a41cf6e0d7d348ee7068662f37b7d8c6edac7786512b504f944
MD5 7ba8f20e1a739c9b74a240de46c39bd1
BLAKE2b-256 a7974e9a296695c24f8e0d6d2b430eeb4baa8d6bddeb1a438d64869606bb9604

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page