Adding links to the graph