Python numpy implementation of a spanning tree algorithm for finding a singly connected Bayesian network from a data set.