Allow connecting groups of different size if an explicit mapping via the "index" argument is given