---
title: "GraphView"
---
<!-- DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/docs/website.rs -->

⚠️ **This type is _unstable_ and may change significantly in a way that the data won't be backwards compatible.**
A graph view to display time-variying, directed or undirected graph visualization.

## Properties

### `background`
Configures the background of the graph.
### `visual_bounds`
Everything within these bounds is guaranteed to be visible.

Some things outside of these bounds may also be visible due to letterboxing.
### `force_link`
Allows to control the interaction between two nodes connected by an edge.

* `enabled`: Whether the link force is enabled.
* `distance`: The target distance between two nodes.
* `iterations`: Specifies how often this force should be applied per iteration.
### `force_many_body`
A force between each pair of nodes that ressembles an electrical charge.

* `enabled`: Whether the many body force is enabled.
* `strength`: The strength of the force.
### `force_position`
Similar to gravity, this force pulls nodes towards a specific position.

* `enabled`: Whether the position force is enabled.
* `strength`: The strength of the force.
* `position`: The position where the nodes should be pulled towards.
### `force_collision_radius`
Resolves collisions between the bounding spheres, according to the radius of the nodes.

* `enabled`: Whether the collision force is enabled.
* `strength`: The strength of the force.
* `iterations`: Specifies how often this force should be applied per iteration.
### `force_center`
Tries to move the center of mass of the graph to the origin.

* `enabled`: Whether the center force is enabled.
* `strength`: The strength of the force.

## API reference links
 * 🐍 [Python API docs for `GraphView`](https://ref.rerun.io/docs/python/stable/common/blueprint_views#rerun.blueprint.views.GraphView)

## Example

### Use a blueprint to create a graph view.

snippet: views/graph

<picture data-inline-viewer="snippets/views/graph">
  <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">
  <img src="https://static.rerun.io/graph_lattice/f9169da9c3f35b7260c9d74cd5be5fe710aec6a8/full.png">
</picture>


## Visualized archetypes

* [`GraphEdges`](../archetypes/graph_edges.md)
* [`GraphNodes`](../archetypes/graph_nodes.md)

