A library for converting molecular topologies