This example shows different types of graphs (and layouts) that you can visualize using Rerun.
Rerun ships with an integrated engine to produce force-based layouts to visualize graphs. Force-directed layout approaches have to advantage that they are flexible and can therefore be used to create different kinds of visualizations. This example shows different types of layouts:
To compute the graph layouts, Rerun implements a physics simulation that is very similar to d3-force
. In particular, we implement the following forces:
If you want to learn more about these forces, we recommend looking at the D3 documentation as well.
Our implementation of the physics simulation is called Fjädra. You can find it on GitHub and on crates.io
.
pip install -e examples/python/graphs
python -m graphs