adding link graph