modeci_mdf.mdf.Graph
- class modeci_mdf.mdf.Graph(id: str, nodes: List[Node] = _Nothing.NOTHING, edges: List[Edge] = _Nothing.NOTHING, parameters: Optional[Dict[str, Any]] = None, conditions: Optional[ConditionSet] = None, *, metadata: Optional[Dict[str, Any]] = None)[source]
Bases:
MdfBase
A 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 (Optional[Dict[str, Any]]) – Dictionary of global parameters for the Graph
conditions (Optional[modeci_mdf.mdf.ConditionSet]) – 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