0.8.1 • Published 2 months ago

helios-web v0.8.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Test the preliminary version of Helios Web here:

Light VersionDark Version
No DensityLightDark
DensityLight & DensityDark & Density

You an drag and drop your own network in gml, xnet or gexf formats.

Helios Web is a web-based library to visualize dynamic networks in real-time. Helios-web is under active development and aims to provide a simple API and optimized implementation to be integrated into other systems and render and layout large networks. This is the successor to the Networks 3D project and the Networks Web project.

Check out the demo https://filipinascimento.github.io/helios-web/docs/example/

Documentation now available at https://filipinascimento.github.io/helios-web/docs/api/

More demos:

Networklightlight+2Ddarkdark+2Ddark+blenddark+blend+2D
Watts-Strogatzlightlight+2Ddarkdark+2Ddark+blenddark+blend+2D
Facebook Egoslightlight+2Ddarkdark+2Ddark+blenddark+blend+2D
Rewired Voronoilightlight+2Ddarkdark+2Ddark+blenddark+blend+2D
US Airportslightlight+2Ddarkdark+2Ddark+blenddark+blend+2D
Global Airportslightlight+2Ddarkdark+2Ddark+blenddark+blend+2D
Protein-proteinlightlight+2Ddarkdark+2Ddark+blenddark+blend+2D
Erdos collaborationlightlight+2Ddarkdark+2Ddark+blenddark+blend+2D
Europe roadslightlight+2Ddarkdark+2Ddark+blenddark+blend+2D
Wiki Sciences*lightlight+2Ddarkdark+2Ddark+blenddark+blend+2D
Wiki Sciences (small)lightlight+2Ddarkdark+2Ddark+blenddark+blend+2D
APS Citations*lightlight+2Ddarkdark+2Ddark+blenddark+blend+2D
COVID Citations*lightlight+2Ddarkdark+2Ddark+blenddark+blend+2D

* huge, may need a good CPU/GPU (press space to enable the layout algorithm)

Building

First install packages

npm install

Build

npm run build

Development and testing

To test the environment use npm run dev. Then go to http://localhost:8080/docs/example/ in your browser (or use the provided hostname and port).

Usage

To use it in your project you can load it as a module in modern browsers via skypack:

<script type="module">

import {Helios} from "https://cdn.skypack.dev/helios-web?min";
// Currently not working. please download and follow the build instructions.
// This will be fixed in the next release

// Nodes are dictionaries (any key can be used as node properties)
let nodes = {
  "0": {
    label: "Node 0",
  },
  "1": {
    label: "Node 1",
  },
  "2": {
    label: "Node 2",
  },
}

// Edges are arrays of node ids
let edges = [
  {
    source: "0",
    target: "1",
  },
  {
    source: "1",
    target: "2",
  },
  {
    source: "2",
    target: "0",
  }
];

let helios = new Helios({
		elementID: "netviz", // ID of the element to render the network in
		nodes: nodes, // Dictionary of nodes 
		edges: edges, // Array of edges
		use2D: false, // Choose between 2D or 3D layouts
	});

</script>

You can find a bare-minimal example at https://jsfiddle.net/yatk8jcb/14/ and a more advanced example at https://jsfiddle.net/filsilva/djfomsgw/69/ (Zachary's karate club network).

Full documentation is available at https://filipinascimento.github.io/helios-web/docs/api/

Helios web is also available as a npm package:

npm install helios-web

then you can use it in your project by importing using the same syntax as above:

import {Helios} from "helios-web";

//...
0.9.0-beta.1

2 months ago

0.8.1

3 months ago

0.8.0

3 months ago

0.7.11

7 months ago

0.7.10

9 months ago

0.7.9

10 months ago

0.7.8

1 year ago

0.7.7

1 year ago

0.7.2

1 year ago

0.7.1

1 year ago

0.7.3

1 year ago

0.7.0

1 year ago

0.5.10

2 years ago

0.5.11

2 years ago

0.5.9

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.4.2

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.3.2

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.5

2 years ago

0.3.3

2 years ago

0.2.4

2 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.1

4 years ago