graph.removeLinks(element)

Remove all the associated links with the element.