Function
add_edge_raw
(src: str, tgt: str, relation: str, line: int, confidence: str = "EXTRACTED", weight: float = 1.0)
Source from the content-addressed store, hash-verified
| 434 | }) |
| 435 | |
| 436 | def add_edge_raw(src: str, tgt: str, relation: str, line: int, confidence: str = "EXTRACTED", weight: float = 1.0) -> None: |
| 437 | edges.append({ |
| 438 | "source": src, |
| 439 | "target": tgt, |
| 440 | "relation": relation, |
| 441 | "confidence": confidence, |
| 442 | "source_file": str_path, |
| 443 | "source_location": f"L{line}", |
| 444 | "weight": weight, |
| 445 | }) |
| 446 | |
| 447 | file_nid = _make_id(stem) |
| 448 | add_node(file_nid, path.name, 1) |
Tested by
no test coverage detected