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

Function should_include_edge

graphify/callflow_html.py:969–979  ·  view source on GitHub ↗

Decide whether to auto-include an edge in Mermaid output.

(edge: dict)

Source from the content-addressed store, hash-verified

967
968
969def should_include_edge(edge: dict) -> bool:
970 """Decide whether to auto-include an edge in Mermaid output."""
971 conf = str(edge.get("confidence", "EXTRACTED")).upper()
972 score = to_float(edge.get("confidence_score", 1.0), 1.0)
973
974 if conf == "EXTRACTED":
975 return True
976 if conf == "INFERRED" and score >= 0.85:
977 return True
978 # Low-confidence INFERRED or AMBIGUOUS: comment out for LLM review
979 return False
980
981
982# ──────────────────────────────────────────────

Callers 3

preferred_edgesFunction · 0.85
section_edge_summaryFunction · 0.85
generate_section_cardsFunction · 0.85

Calls 2

to_floatFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected