62 return varMap_.idFromName(name);
67 return varMap_.variableFromName(name);
NodeId idFromName(std::string_view name) const override
Returns the NodeId of a variable given its name.
const VariableNodeMap & variableNodeMap() const override
Returns a constant reference to the VariableNodeMap of this model.
const DiscreteVariable & variableFromName(std::string_view name) const override
Returns a constant reference over a variable given its name.
VariableNodeMap varMap_
Mapping between NodeIds and discrete variables.
NodeId nodeId(const DiscreteVariable &var) const override
Returns the NodeId of a variable.
const DiscreteVariable & variable(NodeId id) const override
Returns a constant reference over a variable given its node id.
Base class for discrete random variable.
Container used to map discrete variables with nodes.
Base class for graphical models over discrete variables.
Size NodeId
Type for node ids.
gum is the global namespace for all aGrUM entities