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.8.tar.gz
(61.3 kB
view hashes)
Built Distributions
Close
Hashes for helios-0.1.8-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b99a40255fe481fc45850df202101aa1e39a80396141bece29de4e92c79385cc |
|
MD5 | d3c37b832aab95c3c5058099e3d85009 |
|
BLAKE2b-256 | 2c9ae737f8e3ad44a37600053683c389cbb24292d01ab590ffb7461ecaa30abd |
Close
Hashes for helios-0.1.8-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eb7be551f16923b6a5f04e9977b34c091953c380e13c2eb18484f34eb31fe06 |
|
MD5 | 0178cd97fb6674e6d611551a3108c6a9 |
|
BLAKE2b-256 | 4095e324f7738b21d1a2f8085025f520fd9a8104d0f70dec821c8b8d9288b2ac |
Close
Hashes for helios-0.1.8-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcdf7d73531dac38fcc464ebe5024e852e30fb6116b4e78cf0d027fe5463891b |
|
MD5 | fcc16f779c13e63443bac623a5dd16e8 |
|
BLAKE2b-256 | 642e379b0dad67b3b938027b30062526782ae44855fc636f0d57f603b736772f |
Close
Hashes for helios-0.1.8-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bfb38ad086ea104a59182e1367a117c5b4208d9744638482c35c6fb4b65bbe2 |
|
MD5 | f1763c31ee76756e2096a6ff7d35ce83 |
|
BLAKE2b-256 | 68c541df105d041ab90901d4d0dbd4cc66e9e5c0ba183f4a9cd54ea0c6b01242 |
Close
Hashes for helios-0.1.8-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc25f7d5d817018d82e5b8c92a3c4178832ef221a91d115534cdcf1a26bc5956 |
|
MD5 | 1ce816e5120a9b8aae164fac4d462ddd |
|
BLAKE2b-256 | a5c9e756a9b703b96a9f006ca5caf81f13a74b06da2eb443c30d0540052b50be |
Close
Hashes for helios-0.1.8-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6a0cbf9fdc699ce61a0f9c853ea9a751a4293d218b4e19b9e0205a6faa0c93a |
|
MD5 | a07e5462ce0196e67bf19733315b34ac |
|
BLAKE2b-256 | fdf21cb57e8303f3c98204a5a0d83fc3110767992588f0a50834ed4dab5ec7a8 |
Close
Hashes for helios-0.1.8-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a424b8fafef8cee95874fdc6f0b213843baea4258fb52fa9ede24899edd7c46 |
|
MD5 | abdb3f6146b7e74761ee12e29724cc62 |
|
BLAKE2b-256 | 4a603361db32fe35baa27f5a00b8aef8d5d18e9a97843667c7201a4cc54ba4ba |
Close
Hashes for helios-0.1.8-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f39a656ea4930435a1d0aa6a0edbc6d47c139437e57e0c7e2dcca844183fa98d |
|
MD5 | 19cdb9486f9a885428b5d74fb6626097 |
|
BLAKE2b-256 | 4dfd2d179c59ae8cb50c2b5cd52133b7e2e9a13a7ad72f61de74355c26ac4fb5 |