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

Function _read_graph_for_extraction

graphify/cli.py:604–609  ·  view source on GitHub ↗
(graph_path: Path)

Source from the content-addressed store, hash-verified

602
603
604def _read_graph_for_extraction(graph_path: Path) -> dict | None:
605 try:
606 data = json.loads(graph_path.read_text(encoding="utf-8"))
607 except (OSError, ValueError, RecursionError):
608 return None
609 return data if isinstance(data, dict) else None
610
611def _placeholder_stale_sources(
612 graph_path: Path,

Calls

no outgoing calls