Generate the next unique node ID and increment the counter.
(&mut self)
| 289 | |
| 290 | /// Generate the next unique node ID and increment the counter. |
| 291 | pub(crate) fn next_id(&mut self) -> String { |
| 292 | self.counter += 1; |
| 293 | format!("{}-{}", self.session_prefix, self.counter) |
| 294 | } |
| 295 | |
| 296 | /// Push a node onto the graph, updating stats and last_node cursor. |
| 297 | pub(crate) fn push_node(&mut self, node: GraphNode) { |
no outgoing calls
no test coverage detected