(result)
| 14 | return [n["label"] for n in result["nodes"]] |
| 15 | |
| 16 | def _call_pairs(result): |
| 17 | node_by_id = {n["id"]: n["label"] for n in result["nodes"]} |
| 18 | return { |
| 19 | (node_by_id.get(e["source"], e["source"]), node_by_id.get(e["target"], e["target"])) |
| 20 | for e in result["edges"] if e["relation"] == "calls" |
| 21 | } |
| 22 | |
| 23 | def _confidences(result): |
| 24 | return {e["confidence"] for e in result["edges"]} |
no test coverage detected