peekxc / rusty_graph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning: This repository has nothing useful in it yet and is purely for sport. Do not use.

Vision

  • Force-directed layout w/ Rust + Python, integrated into Bokeh

Steps

  • Build a force-directed layout class
  • Integrate the layout algorithm with Bokeh via DataSource (possibly using webassembly)
  • Rewrite force in Rust for speed, maintaining Bokeh relationship
  • (Stretch) Extend w/ WebGL
  • (Stretch) Use CoLA or better layout than FR?

Install

pip install --editable . 

Visualizing the app

Navigate your working directory to apps/force_graph, then use:

BOKEH_ALLOW_WS_ORIGIN=localhost:5006 bokeh serve --show app.py

Then, in the browser at http://localhost:5006/app you should see a force-directed graph changing.

About

License:Apache License 2.0


Languages

Language:Python 71.6%Language:Rust 18.5%Language:HTML 5.3%Language:CSS 2.9%Language:Makefile 0.7%Language:JavaScript 0.6%Language:Dockerfile 0.3%