As Pedro said your error is caused by having a circular reference; for example suppose you have Jane who is linked to Lucy, then you try and link Lucy to Jane, that would cause this error. You can also get this when linking to contacts because of a relatipnship they have with another entity type like account.
Look at using relationships, they allow much more flexability for these types of relationships and could be just what you need.