Boris Ignjatovic share a Python Based Maya script called Connection Changer for Maya, which will allow you to reconnect nodes around quite easily based on Set Driven Keys, constraints, Expressions or Direct Connections…pretty useful when rigging.

Check out the Connection Changer script for Maya here.

Boris Ignjatovic writes: Connection changer is a simple script made to easy out the pain of reconnecting all the connections that were attached to the wrong object. Mainly created for purposes of rigging.