136 bool nodes_resize_policy =
true,
138 bool arcs_resize_policy =
true);
222 NodeSet& alreadyVisitedDn)
const;
227 NodeSet& alreadyVisitedDn)
const;
Inline implementation of Base classes for directed acylic 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)
void _minimalCondSetVisitUp_(NodeId node, const NodeSet &soids, NodeSet &minimal, NodeSet &alreadyVisitedUp, NodeSet &alreadyVisitedDn) const
void _minimalCondSetVisitDn_(NodeId node, const NodeSet &soids, NodeSet &minimal, NodeSet &alreadyVisitedUp, NodeSet &alreadyVisitedDn) const
UndiGraph moralGraph() const
build a UndiGraph by moralizing the dag
NodeSet minimalCondSet(NodeId target, const NodeSet &soids) const
DAG & operator=(const DAG &g)
copy operator
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
void addArc(NodeId tail, NodeId head) final
insert a new arc into the directed graph
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
const NodeGraphPart & nodes() const
return *this as a NodeGraphPart
Base class for undirected graphs.
Base classes for oriented 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 ...
gum is the global namespace for all aGrUM entities
static constexpr Size default_size
The default number of slots in hashtables.
Base classes for undirected graphs.