adding interlinks between all the graphs