n2_html module¶
Generator of the HTML file containing a D3.js version of the N2 chart.
- class gemseo.utils.n2d3.n2_html.N2HTML(file_path='n2.html', show_html=False)[source]
Bases:
object
Generate an HTML file to visualize a dynamic and interactive N2 chart.
- Parameters:
- from_graph(graph, self_coupled_disciplines=None)[source]
Create the HTML file from a dependency graph.
- Parameters:
graph (DependencyGraph) – The dependency graph.
self_coupled_disciplines (Sequence[str] | None) – The names of the self-coupled disciplines, if any.
- Return type:
None