Updated link.source and link.target to point to the reference instead of the id of a node.