# plot¶

Graph2P.plot(filename)

Creates a plot of probability vs node.

Parameters: filename (str) – the absolute/relative path to the desired output file.

Note

• ensure a file extension is present so that filetype is correctly set (choose one of png, pdf, ps, eps or svg).
• if propagate() has not been called, the probability of the initial state is plotted ($$t=0$$). Otherwise, the last propagated time (Graph2P.t) is used.