7 #ifndef GRAPHGEN_COLLECT_DRAG_STATISTICS_H_
8 #define GRAPHGEN_COLLECT_DRAG_STATISTICS_H_
11 #include <unordered_set>
22 std::vector<BinaryDrag<conact>::node*>
leaves_;
34 for (
size_t i = 0; i <
leaves_.size(); ++i)
43 std::unordered_map<BinaryDrag<conact>::node*, std::vector<BinaryDrag<conact>::node*>>
parents_;
47 for (
const auto& t : bd.
roots_) {
56 auto it =
np_.find(n);
A BinaryDrag is the GRAPHGEN implementation of a Binary Directed Rooted Acyclic Graph (DRAG in short)
std::vector< node * > roots_
std::vector< BinaryDrag< conact >::node * > leaves_
STreeProp & operator+=(const STreeProp &rhs)
bool equivalent(const STreeProp &rhs)
BinaryDrag< conact >::node * n_
CollectDragStatistics(BinaryDrag< conact > &bd)
std::unordered_map< BinaryDrag< conact >::node *, STreeProp > np_
STreeProp CollectStatsRec(BinaryDrag< conact >::node *n)
std::unordered_map< BinaryDrag< conact >::node *, std::vector< BinaryDrag< conact >::node * > > parents_