Code for the AAAI 2014 paper: Manifold Spanning Graphs