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

Function _render

tests/test_html_theme.py:25–32  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

23
24
25def _render(tmp_path):
26 G = nx.Graph()
27 G.add_node("a", label="Alpha", source_file="a.py", file_type="code")
28 G.add_node("b", label="Beta", source_file="b.py", file_type="code")
29 G.add_edge("a", "b", relation="calls", confidence="EXTRACTED")
30 out = tmp_path / "graph.html"
31 to_html(G, {0: ["a", "b"]}, str(out), community_labels={0: "Core"})
32 return out.read_text(encoding="utf-8")
33
34
35def test_community_order_controls_reach_small_renderer(tmp_path):

Calls 3

add_nodeMethod · 0.95
add_edgeMethod · 0.95
to_htmlFunction · 0.90

Tested by

no test coverage detected