exporter.to_web_viz_payload()
Build a web-visualization payload from a dependency graph.
Usage
exporter.to_web_viz_payload(
graph,
*,
max_local_nodes=None,
max_local_edges=None,
include_guarded_edges=True,
include_guarded_edges_for_partition=False,
layout="clustered_force",
layout_config=None,
include_formula_on_nodes=True,
max_formula_length=120,
seed=0,
weight_attr=None,
include_module_overlay=True
)Accepts DependencyGraph, any GraphReadView (including projections), or a NetworkX DiGraph for compatibility. A graph-view caller does not reconstruct the graph from NetworkX. NetworkX is materialized only when the selected layout or partition needs it, or when a plugin reads ctx.nx_graph.
Layout is selected by layout (registered web layout plugin id or a direct WebVizLayoutPlugin callable). The default clustered_force is the shared multilevel clustered force layout (excel_grapher.grapher.viz_layout) with directed Louvain modules as clusters; pass layout_config={"rank_pull": "none" | "between" | "everywhere"} to set its vertical pull towards input depth (default "between"). Other built-in ids are spring, forceatlas2, graphviz_dot, and graphviz_sfdp.
Set include_module_overlay=False to skip the partition overlay (single module color; overview still draws local graph edges in the viewer).