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