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

Method connects

graphlite/src/storage/types.rs:169–172  ·  view source on GitHub ↗

Check if this edge connects the given nodes (in either direction)

(&self, node1: &str, node2: &str)

Source from the content-addressed store, hash-verified

167
168 /// Check if this edge connects the given nodes (in either direction)
169 pub fn connects(&self, node1: &str, node2: &str) -> bool {
170 (self.from_node == node1 && self.to_node == node2)
171 || (self.from_node == node2 && self.to_node == node1)
172 }
173
174 /// Check if this edge goes from node1 to node2
175 pub fn goes_from_to(&self, from: &str, to: &str) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected