Before revision:  The  code presented here, available in Git-Hub, may be easily modified to be applied to other areas of interest involving connections between individuals, such as models of opinion spread .
After revision:  The algorithm includes a feature to average several tree realizations, obtain the connectivity distribution, and calculate the average and mean value. We used this feature to compare trees with a different number of generations and nodes. The code presented here, available in Git-Hub, may be easily modified to be applied to other areas of interest involving connections between individuals, such as models of opinion spread .