MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / AliveGraph

Class AliveGraph

atomic-core/src/output/alive/graph.rs:82–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80/// - Each span's child list ends with `(None, VertexId::DUMMY)`
81#[derive(Debug)]
82pub struct AliveGraph {
83 /// All vertices in the graph.
84 ///
85 /// Index 0 is always the DUMMY span.
86 vertices: Vec<AliveVertex>,
87
88 /// Shared storage for all vertices' children.
89 ///
90 /// Each entry is `(Option<edge>, child_vertex_id)`.
91 /// `None` edges are used for sentinels marking end of child lists.
92 children: Vec<(Option<SerializedGraphEdge>, VertexId)>,
93
94 /// Total bytes of content across all vertices.
95 total_bytes: usize,
96}
97
98impl AliveGraph {
99 /// Create a new, empty alive graph.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected