MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _add_node

Function _add_node

graphify/extractors/sql.py:611–618  ·  view source on GitHub ↗
(nid: str, label: str, line: int)

Source from the content-addressed store, hash-verified

609 return None
610
611 def _add_node(nid: str, label: str, line: int) -> None:
612 if nid not in seen_ids:
613 seen_ids.add(nid)
614 nodes.append({"id": nid, "label": label, "file_type": "code",
615 "source_file": str_path, "source_location": f"L{line}"})
616 edges.append({"source": file_nid, "target": nid, "relation": "contains",
617 "confidence": "EXTRACTED", "source_file": str_path,
618 "source_location": f"L{line}", "weight": 1.0})
619
620 def _add_edge(src: str, tgt: str, relation: str, line: int) -> None:
621 if not src or not tgt:

Callers 2

walkFunction · 0.70
extract_sqlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected