Go to file
h4kor 407a08d1f7 Merge pull request 'Python package' (#1) from python_package into main
Reviewed-on: #1
2022-11-20 16:14:55 +00:00
.vscode formatting 2022-11-20 17:09:39 +01:00
src formatting 2022-11-20 17:09:39 +01:00
.gitignore init with maturin 2022-11-20 14:49:43 +01:00
Cargo.lock init with maturin 2022-11-20 14:49:43 +01:00
Cargo.toml init with maturin 2022-11-20 14:49:43 +01:00
README.md requirements + minimal readme 2022-11-20 17:14:34 +01:00
pyproject.toml init with maturin 2022-11-20 14:49:43 +01:00
requirements.txt requirements + minimal readme 2022-11-20 17:14:34 +01:00

README.md

Graph Force

A python/rust library for embedding graphs in 2D space, using force-directed layouts.

Development

Setup

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Build

maturin develop

Usage

import graph_force

edges = [(0, 1), (1, 2), (2, 3), (3, 0)]
pos = graph_force.layout_from_edge_list(4, edges)