The removeLink method has the following passage in the documentation:
If you pass two arguments, the function assumes they represent from/to node ids
I assume this means something like removeLink(fromID,toID)? If so, the method's typing doesn't support this signature.