lib.notebook.showGraph
- pyagrum.lib.notebook.showGraph(gr, size=None)
show a pydot graph in a notebook
- Parameters:
gr (
pydot.Dot) – the graphsize (
float|str) – the size (for graphviz) of the rendered graph
- Return type:
None
Example
import pydot as dot
import pyagrum as gum
import pyagrum.lib.notebook as gnb
graph = dot.graph_from_dot_data(gum.fastBN("A->B").toDot())[0]
gnb.showGraph(graph, size="2")