modeci_mdf.mdf.Graph
- class modeci_mdf.mdf.Graph(id: str, nodes: List[Node] = NOTHING, edges: List[Edge] = NOTHING, parameters: Dict[str, Any] | None = None, conditions: ConditionSet | None = None, *, metadata: Dict[str, Any] | None = None)[source]
Bases:
MdfBaseA directed graph consisting of :class:`~Node`s (with :class:`~Parameter`s and :class:`~Function`s evaluated internally) connected via :class:`~Edge`s.
- Variables:
id (str) – A unique identifier for this Graph
nodes (List[modeci_mdf.mdf.Node]) – One or more :class:`Node`(s) present in the graph
edges (List[modeci_mdf.mdf.Edge]) – Zero or more :class:`Edge`(s) present in the graph
parameters (Dict[str, Any] | None) – Dictionary of global parameters for the Graph
conditions (modeci_mdf.mdf.ConditionSet | None) – The ConditionSet stored as dictionary for scheduling of the Graph
Method generated by attrs for class Graph.
Methods
get_node(id)Retrieve Node object corresponding to the given id