Check if the graph is empty (no nodes and no edges)
(&self)
| 189 | |
| 190 | /// Check if the graph is empty (no nodes and no edges) |
| 191 | pub fn is_empty(&self) -> bool { |
| 192 | self.nodes.is_empty() && self.edges.is_empty() |
| 193 | } |
| 194 | |
| 195 | /// Check if an edge exists |
| 196 | pub fn has_edge(&self, edge_id: &str) -> Result<bool, GraphError> { |
no outgoing calls
no test coverage detected