graphtools
Project description
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
Release history Release notifications | RSS feed
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.5.1.tar.gz
(57.0 kB
view hashes)
Built Distribution
graphtools-1.5.1-py3-none-any.whl
(45.3 kB
view hashes)
Close
Hashes for graphtools-1.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87d12e0d7bc1e672d0ed0a8cf5fb36a7d111fd2f34a54cd98923b2455ec45e1b |
|
MD5 | e65235d6c08befd37862be2d49c8afb4 |
|
BLAKE2b-256 | 0fa46219220863d4b573f5172838aafebe6c8ea7c640005f78f22f5a9d7b1879 |