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

Function node_display_name

graphify/callflow_html.py:1206–1211  ·  view source on GitHub ↗

Readable node label for tables and summaries.

(node: dict | None, fallback: str = "")

Source from the content-addressed store, hash-verified

1204
1205
1206def node_display_name(node: dict | None, fallback: str = "") -> str:
1207 """Readable node label for tables and summaries."""
1208 if not node:
1209 return str(fallback or "")
1210 label = str(node.get("label") or node.get("id") or fallback or "")
1211 return humanize_label(label, node.get("source_file", ""))
1212
1213
1214def format_node_refs(node_ids: set, node_by_id: dict, lang: str, empty_text: str, limit: int = 3) -> str:

Callers 1

format_node_refsFunction · 0.85

Calls 2

humanize_labelFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected