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

Method has_vertex

atomic-core/src/apply/graph_batch.rs:273–277  ·  view source on GitHub ↗
(&self, node: GraphNode<NodeId>)

Source from the content-addressed store, hash-verified

271 }
272
273 fn has_vertex(&self, node: GraphNode<NodeId>) -> PristineResult<bool> {
274 let key = encode_vertex(node.change.get(), node.start.get(), node.end.get());
275 let has = self.graph.get(&key)?.next().transpose()?.is_some();
276 Ok(has)
277 }
278
279 fn get_node_type(&self, node_id: NodeId) -> PristineResult<Option<u8>> {
280 self.txn.get_node_type(node_id)

Callers 2

write_new_edgeFunction · 0.45

Calls 3

encode_vertexFunction · 0.85
getMethod · 0.65
nextMethod · 0.45

Tested by

no test coverage detected