| 447 | /// Useful for debugging, logging, and performance analysis. |
| 448 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] |
| 449 | pub struct GraphStats { |
| 450 | /// Number of vertices in the graph. |
| 451 | pub vertex_count: usize, |
| 452 | |
| 453 | /// Number of child entries. |
| 454 | pub child_count: usize, |
| 455 | |
| 456 | /// Total bytes of content. |
| 457 | pub total_bytes: usize, |
| 458 | |
| 459 | /// Number of zombie vertices (deleted but with live connections). |
| 460 | pub zombie_count: usize, |
| 461 | |
| 462 | /// Number of empty (zero-length) vertices. |
| 463 | pub empty_vertex_count: usize, |
| 464 | } |
| 465 | |
| 466 | impl GraphStats { |
| 467 | /// Check if the graph has any conflicts (zombies). |