//! DO NOT EDIT! This file was autogenerated by `docs/snippets/build.rs`. The original is in `/home/runner/work/rerun/rerun/docs/snippets/all/archetypes/graph_directed.rs`.
//! Log a simple directed graph.
pub fn main(_args: &[String]) -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_graph_directed").spawn()?;
rec.log(
"simple",
&[
&rerun::GraphNodes::new(["a", "b", "c"])
.with_positions([(0.0, 100.0), (-100.0, 0.0), (100.0, 0.0)])
.with_labels(["A", "B", "C"]) as &dyn rerun::AsComponents,
&rerun::GraphEdges::new([("a", "b"), ("b", "c"), ("c", "a")]).with_directed_edges(),
],
)?;
Ok(())
}