Crossings Minimization  1.0
random_tree.h
Go to the documentation of this file.
1 /**
2  * @file random_tree.h
3  * @brief Module for creating a random tree with a given number of nodes and
4  * layers.
5  *
6  * @author Matt Stallmann
7  * @date 2011/05/30
8  * $Id: random_tree.h 2 2011-06-07 19:50:41Z mfms $
9  */
10 
11 #ifndef RANDOM_TREE_H
12 #define RANDOM_TREE_H
13 
14 /**
15  * Creates a random tree with the given number of nodes and layers.
16  *
17  * @param branching_factor the number of chidren of a node is a random number
18  * in the range [1 .. branching_factor]; a large branching factor means that
19  * the variance in degree will be larger.
20  */
21 void create_random_tree( int num_nodes,
22  int num_layers,
23  int branching_factor
24  );
25 
26 #endif
27 
28 /* [Last modified: 2011 06 01 at 18:59:33 GMT] */
void create_random_tree(int num_nodes, int num_layers, int branching_factor)
Definition: random_tree.c:208