Create a new, empty alive graph. The graph starts empty. You should typically push `AliveVertex::DUMMY` as the first span. # Example ```rust use atomic_core::output::alive::{AliveGraph, AliveVertex}; let mut graph = AliveGraph::new(); graph.push_vertex(AliveVertex::DUMMY); assert_eq!(graph.len_vertices(), 1); ```
()
| 111 | /// assert_eq!(graph.len_vertices(), 1); |
| 112 | /// ``` |
| 113 | pub fn new() -> Self { |
| 114 | Self { |
| 115 | vertices: Vec::new(), |
| 116 | children: Vec::new(), |
| 117 | total_bytes: 0, |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | /// Create a graph with pre-allocated capacity. |
| 122 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected