code: def add_xref(self, id, xref):
          
          # note: does not update meta object
          if self.xref_graph is None:
              self.xref_graph = nx.MultiGraph()
          self.xref_graph.add_edge(xref, id)
docs: Adds an xref to the xref graph