Refactoring graph links