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

Function _write_graph

tests/test_affected_seed_reference_forms.py:95–102  ·  view source on GitHub ↗
(tmp_path, graph: nx.Graph)

Source from the content-addressed store, hash-verified

93
94
95def _write_graph(tmp_path, graph: nx.Graph) -> str:
96 from graphify.paths import GRAPHIFY_OUT_NAME
97
98 out_dir = tmp_path / "repo" / GRAPHIFY_OUT_NAME
99 out_dir.mkdir(parents=True)
100 gp = out_dir / "graph.json"
101 gp.write_text(json.dumps(json_graph.node_link_data(graph, edges="links")), encoding="utf-8")
102 return str(gp)
103
104
105def _run_affected(monkeypatch, graph_path: str, query: str) -> int:

Calls

no outgoing calls

Tested by

no test coverage detected