MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / has_vertex

Method has_vertex

atomic-core/src/pristine/txn/read.rs:244–249  ·  view source on GitHub ↗
(&self, node: GraphNode<NodeId>)

Source from the content-addressed store, hash-verified

242 }
243
244 fn has_vertex(&self, node: GraphNode<NodeId>) -> PristineResult<bool> {
245 let table = self.txn.open_multimap_table(GRAPH)?;
246 let key = encode_vertex(node.change.get(), node.start.get(), node.end.get());
247 let has = table.get(&key)?.next().is_some();
248 Ok(has)
249 }
250
251 fn get_node_type(&self, node_id: NodeId) -> PristineResult<Option<u8>> {
252 let table = self.txn.open_table(NODE_TYPES)?;

Callers

nothing calls this directly

Calls 4

encode_vertexFunction · 0.85
contains_keyMethod · 0.80
getMethod · 0.65
nextMethod · 0.45

Tested by

no test coverage detected