Size sizeArcs() const
indicates the number of arcs stored within the ArcGraphPart
const NodeSet & parents(NodeId id) const
returns the set of nodes with arc ingoing to a given node
NodeSet children(const NodeSet &ids) const
returns the set of nodes which consists in the node and its parents returns the set of children of a ...
const ArcSet & arcs() const
returns the set of arcs stored within the ArcGraphPart
NodeSet ancestors(NodeId id) const
returns the set of all ancestors of id (nodes from which id is reachable)
NodeSet descendants(NodeId id) const
returns the set of all descendants of id (nodes reachable from id)
NodeId idFromName(std::string_view name) const override
Returns the NodeId of a variable given its name.
const DiscreteVariable & variable(NodeId id) const override
Returns a constant reference over a variable given its node id.
Size sizeEdges() const
indicates the number of edges stored within the EdgeGraphPart
const EdgeSet & edges() const
returns the set of edges stored within the EdgeGraphPart
const NodeSet & neighbours(NodeId id) const
returns the set of node neighbours to a given node
const NodeSet & neighbours(NodeId id) const
wrapping MixedGraph::parents(id)
const std::string & nameFromId(NodeId node) const
wrappping .name()
Size sizeEdges() const
wrapping MixedGraph::sizeEdges()
const NodeSet & children(NodeId id) const
wrapping MixedGraph::parents(id)
NodeProperty< NodeId > connectedComponents() const
Returns the connected components of the essential graph. Each node maps to the id of its component ro...
Size sizeArcs() const
wrapping MixedGraph::sizeArcs()
const ArcSet & arcs() const
wrapping MixedGraph::arcs()
const DAGmodel * _dagmodel_
NodeId idFromName(std::string_view name) const
wrappping DAGModel::idFromName()
const NodeSet & parents(NodeId id) const
wrapping MixedGraph::parents(id)
const NodeGraphPart & nodes() const
wrapping MixedGraph::nodes()
NodeSet descendants(NodeId id) const
wrapping PDAG::descendants(id)
NodeSet ancestors(NodeId id) const
wrapping PDAG::ancestors(id)
Size size() const
wrapping MixedGraph::size()
const EdgeSet & edges() const
wrapping MixedGraph::edges()
Size sizeNodes() const
wrapping MixedGraph::sizeNodes()
NodeProperty< NodeId > connectedComponents() const
returns a property {node:id of weakly connected component}
Class for node sets in graph.
Size size() const
alias for sizeNodes
Size sizeNodes() const
returns the number of nodes in the NodeGraphPart
const NodeGraphPart & nodes() const
return *this as a NodeGraphPart
Base class for partially directed acyclic graphs.
const std::string & name() const
returns the name of the variable
Class building the essential Graph from a DAGmodel.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Set< Edge > EdgeSet
Some typdefs and define for shortcuts ...
Size NodeId
Type for node ids.
Set< Arc > ArcSet
Some typdefs and define for shortcuts ...
HashTable< NodeId, VAL > NodeProperty
Property on graph elements.
Set< NodeId > NodeSet
Some typdefs and define for shortcuts ...
gum is the global namespace for all aGrUM entities