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-0.2.1.tar.gz
(26.8 kB
view hashes)
Built Distributions
graphtools-0.2.1-py3-none-any.whl
(24.4 kB
view hashes)
graphtools-0.2.1-py2-none-any.whl
(25.2 kB
view hashes)
Close
Hashes for graphtools-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 021b07f040821257ceb20d8e90e885ce378b1bf50f10dfd59784b02ac6947208 |
|
MD5 | a4b1aaa70eefbc4e25a8777a16324d41 |
|
BLAKE2b-256 | 38c4e40155fbda2187ceea08eef544fcf91aae51a9b04850237d8fc06ea2f1de |
Close
Hashes for graphtools-0.2.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36c018ffef1292b1c8fc8f505c5beeed977a2234bf3f53f3c04227269a9e6dd1 |
|
MD5 | be04b7bd08ac54504b2c0f147dfb1f3d |
|
BLAKE2b-256 | 803b168b076ccf62903739fb2a0ceab35813a8e7240e00e125f7d3d3e6452f32 |