gemseo / utils / n2d3

n2_json module

Generator of the JSON file defining the coupling structure used by the N2 chart.

class gemseo.utils.n2d3.n2_json.N2JSON(graph, self_coupled_disciplines=None)[source]

Bases: object

The JSON structure to be used by the D3.js-based N2 chart.

Parameters:
  • graph (DependencyGraph) – The dependency graph.

  • self_coupled_disciplines (Sequence[str] | None) – The names of the self-coupled disciplines, if any.