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

Method extract_node_edge_identities

graphlite/src/exec/executor.rs:7905–7933  ·  view source on GitHub ↗

ROADMAP v0.5.0 - Identity extraction for result processing

(&self, row: &Row)

Source from the content-addressed store, hash-verified

7903 /// Returns a sorted set of identities to ensure consistent comparison
7904 #[allow(dead_code)] // ROADMAP v0.5.0 - Identity extraction for result processing
7905 fn extract_node_edge_identities(&self, row: &Row) -> Vec<String> {
7906 let mut identities = Vec::new();
7907
7908 log::debug!(
7909 "DEBUG: Extracting identities from row with keys: {:?}",
7910 row.values.keys().collect::<Vec<_>>()
7911 );
7912 for (key, value) in &row.values {
7913 log::debug!(" Key: '{}', Value type: {:?}", key, value.type_name());
7914 match value {
7915 Value::Node(node) => {
7916 log::debug!(" Found node: {}", node.id);
7917 identities.push(format!("node:{}", node.id));
7918 }
7919 Value::Edge(edge) => {
7920 log::debug!(" Found edge: {}", edge.id);
7921 identities.push(format!("edge:{}", edge.id));
7922 }
7923 _ => {
7924 log::debug!(" Non-node/edge value: {}", value.type_name());
7925 }
7926 }
7927 }
7928
7929 // Sort to ensure consistent comparison regardless of HashMap iteration order
7930 identities.sort();
7931 log::debug!("DEBUG: Final identities: {:?}", identities);
7932 identities
7933 }
7934
7935 /// Execute EXCEPT operation
7936 fn execute_except(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected