Incrementally add an unweighted edge (goes into mutable buffer). Uses weight 1.0 if the graph already has weighted edges. Returns `Err(GraphError::LabelOverflow)` if the label id space is exhausted. Production callers should always surface this to the client; silently ignoring it reproduces the silent-wrap bug the `u32` widening was meant to fix.
(&mut self, src: &str, label: &str, dst: &str)
| 13 | /// client; silently ignoring it reproduces the silent-wrap bug the |
| 14 | /// `u32` widening was meant to fix. |
| 15 | pub fn add_edge(&mut self, src: &str, label: &str, dst: &str) -> Result<(), crate::GraphError> { |
| 16 | self.add_edge_internal(src, label, dst, 1.0, false) |
| 17 | } |
| 18 | |
| 19 | /// Incrementally add a weighted edge (goes into mutable buffer). |
| 20 | /// |