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

Method get_connected_edges

graphlite/src/storage/graph_cache.rs:245–249  ·  view source on GitHub ↗

Get all edges connected to a node (both incoming and outgoing)

(&self, node_id: &str)

Source from the content-addressed store, hash-verified

243
244 /// Get all edges connected to a node (both incoming and outgoing)
245 pub fn get_connected_edges(&self, node_id: &str) -> Vec<&Edge> {
246 let mut edges = self.get_outgoing_edges(node_id);
247 edges.extend(self.get_incoming_edges(node_id));
248 edges
249 }
250
251 /// Get neighbors of a node (nodes connected by outgoing edges)
252 pub fn get_neighbors(&self, node_id: &str) -> Vec<&Node> {

Callers 1

Calls 2

get_outgoing_edgesMethod · 0.80
get_incoming_edgesMethod · 0.80

Tested by

no test coverage detected