Check if a node exists
(&self, node_id: &str)
| 184 | |
| 185 | /// Check if a node exists |
| 186 | pub fn has_node(&self, node_id: &str) -> Result<bool, GraphError> { |
| 187 | Ok(self.nodes.contains_key(node_id)) |
| 188 | } |
| 189 | |
| 190 | /// Check if the graph is empty (no nodes and no edges) |
| 191 | pub fn is_empty(&self) -> bool { |
no test coverage detected