Your problem seems a little under specified. In particular, the metadata for each paper will need to declare its own numerical identifier (not just the IDs of the papers it cites). In your example,...