Skip to main content

Module factor_graph_viz

Module factor_graph_viz 

Source
Expand description

Factor graph visualization and structural analysis.

Renders factor graphs as ASCII art and DOT (Graphviz) format, and computes structural statistics (degree distributions, tree detection, treewidth bounds).

Structs§

FactorGraphModel
A lightweight factor graph representation for visualization.
FactorGraphStats
Structural statistics for a factor graph.
VizFactorNode
A factor node inside a FactorGraphModel.
VizVariableNode
A variable node inside a FactorGraphModel.

Functions§

render_ascii
Render a FactorGraphModel as human-readable ASCII text.
render_dot
Render a FactorGraphModel as a DOT (Graphviz) graph.