Back to Rerun

README

examples/python/graph_lattice/README.md

0.31.41.3 KB
Original Source
<!--[metadata] title = "Graph lattice" tags = ["Graph", "Layout"] thumbnail = "https://static.rerun.io/graph_lattice/f9169da9c3f35b7260c9d74cd5be5fe710aec6a8/480w.png" thumbnail_dimensions = [480, 269] -->

This example shows different attributes that you can associate with nodes in a graph. Since no explicit positions are passed for the nodes, Rerun will layout the graph automatically.

<picture> <source media="(max-width: 480px)" srcset="https://static.rerun.io/graph_lattice/f9169da9c3f35b7260c9d74cd5be5fe710aec6a8/480w.png"> <source media="(max-width: 768px)" srcset="https://static.rerun.io/graph_lattice/f9169da9c3f35b7260c9d74cd5be5fe710aec6a8/768w.png"> <source media="(max-width: 1024px)" srcset="https://static.rerun.io/graph_lattice/f9169da9c3f35b7260c9d74cd5be5fe710aec6a8/1024w.png"> <source media="(max-width: 1200px)" srcset="https://static.rerun.io/graph_lattice/f9169da9c3f35b7260c9d74cd5be5fe710aec6a8/1200w.png"> </picture>

Used Rerun types

GraphNodes, GraphEdges

Run the code

bash
pip install -e examples/python/graph_lattice
python -m graph_lattice