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

Function add_node

graphify/extractors/powershell.py:38–42  ·  view source on GitHub ↗
(nid: str, label: str, line: int)

Source from the content-addressed store, hash-verified

36 methods_by_class: dict[str, dict[str, str]] = {}
37
38 def add_node(nid: str, label: str, line: int) -> None:
39 if nid not in seen_ids:
40 seen_ids.add(nid)
41 nodes.append({"id": nid, "label": label, "file_type": "code",
42 "source_file": str_path, "source_location": f"L{line}"})
43
44 def add_edge(src: str, tgt: str, relation: str, line: int,
45 confidence: str = "EXTRACTED", weight: float = 1.0,

Callers 3

extract_powershellFunction · 0.70
walkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected