| 80 | /// - Each span's child list ends with `(None, VertexId::DUMMY)` |
| 81 | #[derive(Debug)] |
| 82 | pub 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 | |
| 98 | impl AliveGraph { |
| 99 | /// Create a new, empty alive graph. |
nothing calls this directly
no outgoing calls
no test coverage detected