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

Function add_node

graphify/extractors/objc.py:131–138  ·  view source on GitHub ↗
(nid: str, label: str, line: int, markers: tuple[str, ...] = ())

Source from the content-addressed store, hash-verified

129 objc_field_types: dict[str, dict[str, str | None]] = {}
130
131 def add_node(nid: str, label: str, line: int, markers: tuple[str, ...] = ()) -> None:
132 if nid not in seen_ids:
133 seen_ids.add(nid)
134 node = {"id": nid, "label": label, "file_type": "code",
135 "source_file": str_path, "source_location": f"L{line}"}
136 for marker in markers:
137 node[marker] = True
138 nodes.append(node)
139
140 def add_edge(src: str, tgt: str, relation: str, line: int,
141 confidence: str = "EXTRACTED", weight: float = 1.0,

Callers 3

extract_objcFunction · 0.70
_emit_enumFunction · 0.70
walkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected