io¶
import expertsystem.io
Serialization module for the expertsystem
.
The io
module provides tools to export or import objects from the
particle
, reaction
and amplitude
modules to and from
disk, so that they can be used by external packages, or just to store (cache)
the state of the system.
-
asdot
(instance: object, render_edge_id: bool = True, render_node: bool = True, strip_spin: bool = False, collapse_graphs: bool = False) → str[source]¶ Convert a
object
to a DOT languagestr
.Only works for objects that can be represented as a graph, particularly a
StateTransitionGraph
or alist
ofStateTransitionGraph
instances.See also