Add very useful addNodes() and addLinks() methods.