(tmp_path, n: int = 6001)
| 60 | |
| 61 | |
| 62 | def _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 | |
| 75 | def _js_function(html: str, name: str) -> str: |
no test coverage detected