The code for my Honours thesis (http://arxiv.org/abs/1310.4456) on cumulative distribution networks.