MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / _node_ref_id

Function _node_ref_id

src/codegraphcontext/cli/cli_helpers.py:690–695  ·  view source on GitHub ↗
(ref)

Source from the content-addressed store, hash-verified

688 }
689
690 def _node_ref_id(ref) -> Any:
691 # Neo4j's start_node/end_node are full Node objects; FalkorDB's
692 # src_node/dest_node are already the bare node id (an int).
693 if isinstance(ref, (int, str)):
694 return ref
695 return getattr(ref, "element_id", None) or getattr(ref, "id", None)
696
697 def _edge_payload(value) -> Optional[Dict[str, Any]]:
698 # Neo4j: .start_node/.end_node/.type. FalkorDB: .src_node/.dest_node/

Callers 1

_edge_payloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected