beanmachine.ppl.compiler.gen_dot module

Visualize the contents of a builder in the DOT graph language.

beanmachine.ppl.compiler.gen_dot.to_dot(bmg: beanmachine.ppl.compiler.bm_graph_builder.BMGraphBuilder, node_types: bool = False, node_sizes: bool = False, edge_requirements: bool = False, after_transform: bool = False, label_edges: bool = True, skip_optimizations: Set[str] = {'beta_bernoulli_conjugate_fixer', 'beta_binomial_conjugate_fixer', 'normal_normal_conjugate_fixer'}) str

This dumps the entire accumulated graph state, including orphans, as a DOT graph description; nodes are enumerated in the order they were created.