Skip to main content

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-python

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.5.tar.gz (59.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

helios-0.1.5-cp37-cp37m-macosx_10_9_x86_64.whl (57.7 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

Details for the file helios-0.1.5.tar.gz.

File metadata

  • Download URL: helios-0.1.5.tar.gz
  • Upload date:
  • Size: 59.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for helios-0.1.5.tar.gz
Algorithm Hash digest
SHA256 936614991d62bd23ab6473a5a10039a36751eeab7575b725c4eeae94ba3c3a67
MD5 bb56eb30d52184829195009d05cab5f9
BLAKE2b-256 ff5e4f68f338735ba51dd44d6046d2650ce9d596e6d980b80ccd7195bb0a6357

See more details on using hashes here.

File details

Details for the file helios-0.1.5-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: helios-0.1.5-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 57.7 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for helios-0.1.5-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 08039db0bd33f0fffa0e4232c9c7cfbf43471ca839f3234a763d4ae77c189224
MD5 38e6a743ab98a27fc1f620a90ebe9099
BLAKE2b-256 908c02ba676064d232ebc5d18591279acbe42ff9b20fdb89c73aa270e0b2f511

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