Extra parameter to add_link to add only unique links between objects

Very simple extra parameter. Let me know if you prefer a different implementation.