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

Function _canvas_html

tests/test_html_large.py:62–72  ·  view source on GitHub ↗
(tmp_path, n: int = 6001)

Source from the content-addressed store, hash-verified

60
61
62def _canvas_html(tmp_path, n: int = 6001) -> str:
63 G, communities, labels = _large_graph(n)
64 out = tmp_path / "graph.html"
65 assert to_html(
66 G,
67 communities,
68 str(out),
69 community_labels=labels,
70 node_limit=len(G),
71 ) is True
72 return out.read_text(encoding="utf-8")
73
74
75def _js_function(html: str, name: str) -> str:

Calls 2

to_htmlFunction · 0.90
_large_graphFunction · 0.85

Tested by

no test coverage detected