code: def nodes(self, data=False, native=True):
          
  
          nodes = self.master_graph.nodes(data=data)
          if native:
              if data:
                  nodes = [(self.node_index[n], attrs) for n, attrs in nodes]
              else:
                  nodes = [self.node_index[n] for n in nodes]
          return nodes
docs: Returns a list of all nodes in the :class:`.GraphCollection`\.
  
          Parameters
          ----------
          data : bool
              (default: False) If True, returns a list of 2-tuples containing
              node labels and attributes.
  
          Returns
          -------
          nodes : list