causalnex.plots

Description

causalnex.plots provides functionality to visualise structure models.

Functions

display_plot_ipython(viz, output_filename[, …])

Displays a PyVis object using ipython. :type viz: Network :param viz: pyvis object to render. :type output_filename: str :param output_filename: write html to a given path, e.g. “./plot.html”. File as to end in “.html” :type layout_kwargs: Optional[Dict[str, Dict]] :param layout_kwargs: Dictionary to set the layout and physics of the graph. Example: :: layout_kwargs = { “physics”: { “solver”: “repulsion” }, “layout”: { “hierarchical”: { “enabled”: True } } }.

plot_structure(sm[, all_node_attributes, …])

Plot a StructureModel using pyvis.