Added graph id to links.