Experimental library to visualize complex networks
Project description
Helios
Helios is a python library implemented in C for layouting and visualizing complex networks.
Layout
Helios implements a force layout algorithm based on the FR algorithm [1].
Install
Requires python headers and a C11 compatible compiler, such as gcc or clang.
To install it, simply run:
pip install helios
or clone this repository and install it from master by running:
pip install git+git://github.com/heliosnet/helios-core.git
Usage
Currently only the layout interface is implemented. You can layout a graph by running
import numpy as np
import helios
positions = np.array([
[1,2,3],
[4,5,6],
[7,8,9],
[10,11,12]
],dtype=np.float32);
edges = np.array([
[0,1],
[2,3]
],dtype=np.uint64);
positions = np.ascontiguousarray(positions,dtype=np.float32);
edges = np.ascontiguousarray(edges,dtype=np.uint64);
speeds = np.zeros(positions.shape,dtype=np.float32);
speeds = np.ascontiguousarray(speeds,dtype=np.float32);
for i in range(100):
helios.layout(edges,positions,speeds);
print(positions);
References
[1] Fruchterman, T. M. J., & Reingold, E. M. (1991). Graph Drawing by Force-Directed Placement. Software: Practice and Experience, 21(11).
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
helios-0.1.7.tar.gz
(59.4 kB
view hashes)
Built Distributions
Close
Hashes for helios-0.1.7-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 631fd945d2ee65d5bafa991e424423871bc4ff099e1153a668098572871f4f4c |
|
MD5 | e2c396e080c467b5ece112697398a863 |
|
BLAKE2b-256 | dd88ac857b54eeb8b259298974ca5706aaba042b5ecbdfbaa8c19fc5022f4c1d |
Close
Hashes for helios-0.1.7-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbc3a603a8b158be6785985aab6b9e98654594629825ddb9f43f170faae53a37 |
|
MD5 | 056ad36b901f40c933a3ae44d46e8cc2 |
|
BLAKE2b-256 | f538a05bb7892b8402a45a8e181a356a6c273d43d2c393fea19fc9fe045a9349 |
Close
Hashes for helios-0.1.7-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd09a0d13fc1009671b6a2e17a78fca39bd041ecc4aef606c187b61d2362df67 |
|
MD5 | 0ee054cce21f67bf0f29b96e842618c7 |
|
BLAKE2b-256 | 892c7877703526536f5be36cbf87b2bcef9f67c7c99939220c9ffe564f41c37c |
Close
Hashes for helios-0.1.7-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 896be1d7ece075fcc5774394afa5f0dde1c86f314b1194347d50dcbdb7779329 |
|
MD5 | bf84ea73876d9016750605a9ada7f14a |
|
BLAKE2b-256 | 63325157da9ddc07aaa3ce3e7bd69cce9e8f705572a65bd7f6400b277dc6c2b0 |
Close
Hashes for helios-0.1.7-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7011171447eb26a4c707bf14ef7b6d08554afe7d0891d5acfb54f3be5053e60 |
|
MD5 | 2fd28a0f8c500c9f2d938ee3d6470e99 |
|
BLAKE2b-256 | b9f6f697f39f65bc6ec1082fb7e77c0ad19b4955f82f6f87bb45e7037fb431b8 |