Change go.Shape color when connected with link

You can use Node.linkConnected and Node.linkDisconnected.