Calculate the average number of branches each non-leaf has
averageBranchingFactor(node)
node
The node