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

Function _write_graph

tests/test_callflow_html.py:239–254  ·  view source on GitHub ↗
(tmp_path: Path, nodes: list, links: list)

Source from the content-addressed store, hash-verified

237
238
239def _write_graph(tmp_path: Path, nodes: list, links: list) -> Path:
240 graph_path = tmp_path / "graph.json"
241 graph_path.write_text(
242 json.dumps(
243 {
244 "directed": False,
245 "multigraph": False,
246 "graph": {},
247 "nodes": nodes,
248 "links": links,
249 "hyperedges": [],
250 }
251 ),
252 encoding="utf-8",
253 )
254 return graph_path
255
256
257def test_load_graph_preserves_edge_direction(tmp_path):

Calls

no outgoing calls

Tested by

no test coverage detected