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

Function _make_file_node

tests/test_analyze.py:716–719  ·  view source on GitHub ↗

Create a graph node resembling real graphify schema.

(path: str)

Source from the content-addressed store, hash-verified

714
715
716def _make_file_node(path: str) -> tuple[str, dict]:
717 """Create a graph node resembling real graphify schema."""
718 nid = _make_id(path)
719 return nid, {"label": Path(path).name, "source_file": path, "file_type": "code"}
720
721
722def _make_cycle_graph_directed() -> nx.DiGraph:

Calls 1

_make_idFunction · 0.90

Tested by

no test coverage detected