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

Function _write

tests/test_benchmark_real_query.py:14–16  ·  view source on GitHub ↗
(G: nx.Graph, path)

Source from the content-addressed store, hash-verified

12
13
14def _write(G: nx.Graph, path) -> str:
15 path.write_text(json.dumps(json_graph.node_link_data(G, edges="links")), encoding="utf-8")
16 return str(path)
17
18
19def _small_graph() -> nx.DiGraph:

Calls

no outgoing calls

Tested by

no test coverage detected