Links from bonds and atoms to indicate their different set memberships.
Added linking functionality. Needs to be refactored to a more general
utility function.