Pas de parent renvoyé par les fonctions d'arbres
On dirait que nm_coll_tree_step()
ne renvoie jamais de parent :
% ./nmad/examples/coll/nm_coll_tree_describe binary 12
Describing binary tree with 12 nodes
Max arity: 2
Height: 3
=== Step 0
Node 0 (parent -1) has 2 children: 1, 2
=== Step 1
Node 1 (parent -1) has 2 children: 3, 4
Node 2 (parent -1) has 2 children: 5, 6
=== Step 2
Node 3 (parent -1) has 2 children: 7, 8
Node 4 (parent -1) has 2 children: 9, 10
Node 5 (parent -1) has 1 child: 11
% ./nmad/examples/coll/nm_coll_tree_describe binomial 12
Describing binomial tree with 12 nodes
Max arity: 1
Height: 4
=== Step 0
Node 0 (parent -1) has 1 child: 8
=== Step 1
Node 0 (parent -1) has 1 child: 4
=== Step 2
Node 0 (parent -1) has 1 child: 2
Node 4 (parent -1) has 1 child: 6
Node 8 (parent -1) has 1 child: 10
=== Step 3
Node 0 (parent -1) has 1 child: 1
Node 2 (parent -1) has 1 child: 3
Node 4 (parent -1) has 1 child: 5
Node 6 (parent -1) has 1 child: 7
Node 8 (parent -1) has 1 child: 9
Node 10 (parent -1) has 1 child: 11