MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / is_empty

Method is_empty

graphlite/src/storage/graph_cache.rs:191–193  ·  view source on GitHub ↗

Check if the graph is empty (no nodes and no edges)

(&self)

Source from the content-addressed store, hash-verified

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> {

Callers 8

infer_type_from_valueMethod · 0.45
has_dataMethod · 0.45
union_graphsMethod · 0.45
remove_nodeMethod · 0.45
remove_edgeMethod · 0.45
execute_ddl_operationMethod · 0.45
initMethod · 0.45
initMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected