def edges(self, data=False, native=True):
        """
        Returns a list of all edges in the :class:`.GraphCollection`\.

        Parameters
        ----------
        data : bool
            (default: False) If True, returns a list of 3-tuples containing
            source and target node labels, and attributes.

        Returns
        -------
        edges : list
        """
        edges = self.master_graph.edges(data=data)
        if native:
            if data:
                edges = [(self.node_index[s], self.node_index[t], attrs)
                         for s, t, attrs in edges]
            else:
                edges = [(self.node_index[s], self.node_index[t])
                         for s, t in edges]
        return edges
Returns a list of all edges in the :class:`.GraphCollection`\.

        Parameters
        ----------
        data : bool
            (default: False) If True, returns a list of 3-tuples containing
            source and target node labels, and attributes.

        Returns
        -------
        edges : list