60 DAG::DAG(
Size nodes_size,
bool nodes_resize_policy,
Size arcs_size,
bool arcs_resize_policy) :
62 DiGraph(nodes_size, nodes_resize_policy, arcs_size, arcs_resize_policy) {
Base classes for directed acyclic graphs.
Inline implementation of Base classes for directed acylic graphs.
d-Separation and c-Separation tests for aGrUM graphs.
bool dSeparation(NodeId X, NodeId Y, const NodeSet &Z) const
check if node X and node Y are independent given nodes Z (in the sense of d-separation)
UndiGraph moralGraph() const
build a UndiGraph by moralizing the dag
NodeSet minimalCondSet(NodeId target, const NodeSet &soids) const
DAG(Size nodes_size=HashTableConst::default_size, bool nodes_resize_policy=true, Size arcs_size=HashTableConst::default_size, bool arcs_resize_policy=true)
default constructor
~DAG() override
destructor
UndiGraph moralizedAncestralGraph(const NodeSet &nodes) const
build a UndiGraph by moralizing the Ancestral Graph of a set of Nodes
DiGraph(Size nodes_size=HashTableConst::default_size, bool nodes_resize_policy=true, Size arcs_size=HashTableConst::default_size, bool arcs_resize_policy=true)
default constructor
Class for node sets in graph.
const NodeGraphPart & nodes() const
return *this as a NodeGraphPart
Base class for undirected graphs.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Size NodeId
Type for node ids.
Set< NodeId > NodeSet
Some typdefs and define for shortcuts ...
Generic minimal conditioning set algorithm for directed graphs.
Moralization algorithms for aGrUM directed and mixed graphs.
UndiGraph moralizedAncestralGraph(const G &g, const NodeSet &query)
Returns the moralized ancestral graph of query in g.
bool dSeparated(const G &g, NodeId X, NodeId Y, const NodeSet &Z)
Returns true iff X and Y are d-separated by Z in g.
UndiGraph moralGraph(const G &g)
Returns the moral graph of g.
NodeSet minimalCondSet(const G &g, NodeId target, const NodeSet &soids)
Returns the minimal subset of soids that d-connects target.
gum is the global namespace for all aGrUM entities