Skip to main content

Module visual

Module visual 

Source
Expand description

Visualization model and renderers for RoleGraph.

Converts a RoleGraph into a VisualGraph — a graph-oriented DTO suitable for JSON export, DOT/Mermaid rendering, and terminal tree output.

Structs§

VisualEdge
An edge in the visual graph.
VisualGraph
Top-level visualization graph.
VisualManagedSchema
A schema plus the managed facets owned within that schema.
VisualManagedScope
Optional managed-scope metadata for bundle-aware graph output.
VisualMeta
Metadata about the graph.
VisualNode
A node in the visual graph.

Enums§

EdgeKind
The kind of a visual edge.
NodeKind
The kind of a visual node.
VisualSource
Where the graph data came from.

Constants§

VISUAL_GRAPH_SCHEMA_VERSION

Functions§

build_visual_graph
Build a VisualGraph from a RoleGraph.
render_dot
Render the graph as Graphviz DOT.
render_json
Render the graph as pretty-printed JSON.
render_mermaid
Render the graph as Mermaid flowchart syntax.
render_tree
Render the graph as an indented text tree for terminal display.