Modified WeightedRips::generate() to incorporate the simplex-appearance-value computation (before it would have to be done explicitly by the user by a for-loop after the call to generate())
#include <boost/python.hpp>
#include <boost/python/iterator.hpp>
namespace bp = boost::python;
#include "chain.h"
namespace dp = dionysus::python;
void export_chain()
{
bp::class_<dp::VChain>("Chain")
.def("__iter__", bp::iterator<dp::VChain>())
.def("__len__", &dp::VChain::size)
;
}