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

Method has_vertex

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

Source from the content-addressed store, hash-verified

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

Callers 2

write_new_edgeFunction · 0.45
write_new_vertexFunction · 0.45

Calls 3

encode_vertexFunction · 0.85
getMethod · 0.65
nextMethod · 0.45

Tested by

no test coverage detected