forceatlas2 0.1.0

ForceAtlas2 n-dimension graph layout
Documentation

ForceAtlas2 Rust

Implementation of ForceAtlas2, a Continuous Graph Layout Algorithm for Handy Network Visualization (in other words, position the nodes of a n-dimension graph for drawing it more human-readably).

There is a binding for use in Python, fa2rs.

Examples

Install Rustup and switch to nightly:

rustup toolchain install nightly && rustup default nightly

A packet may be needed to draw graph:

sudo apt install libfreetype6-dev

Clone repository:

git clone https://framagit.org/ZettaScript/forceatlas2-rs && cd forceatlas2-rs

Build example: (examples/wot.csv file lists the edges of a directed graph, in two columns)

cargo build --release --example csv_import
./target/release/examples/csv_import examples/wot.csv

Output images are in target directory.

License

GNU AGPL v3, CopyLeft 2020-2021 Pascal Engélibert

Implementation details inspired by:

The ForceAtlas2 paper was released under CC BY, Copyright 2014 Jacomy et al.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.