graph-force/README.md

25 lines
383 B
Markdown
Raw Normal View History

2022-11-20 16:14:34 +00:00
# Graph Force
2022-11-20 16:11:41 +00:00
A python/rust library for embedding graphs in 2D space, using force-directed layouts.
2022-11-20 16:14:34 +00:00
## Development
### Setup
```
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```
### Build
```
maturin develop
```
## Usage
```python
import graph_force
edges = [(0, 1), (1, 2), (2, 3), (3, 0)]
pos = graph_force.layout_from_edge_list(4, edges)
```