finesse.plotting.graph.plot_graphviz

finesse.plotting.graph.plot_graphviz(network, layout)[source]

Plot graph with graphviz.

The pygraphviz Python package must be installed and available on the current Python path, and graphviz must be available on the system path.

Parameters
networknetworkx.Graph

The network to plot.

layoutstr

The layout type to use. Any layout algorithm provided by graphviz is supported.

Raises
ValueError

If the specified layout is not supported.

ImportError

If graphviz or pygraphviz is not installed.