def bits_needed(self):
        """Return the number of integer bits needed to represent the graph

        Returns
        -------
        int
            The number of bits needed
        """
        if self.num_edges() >= 0x80000000 or self.num_nodes() >= 0x80000000:
            return 64
        else:
            return 32
Return the number of integer bits needed to represent the graph

        Returns
        -------
        int
            The number of bits needed
        
python/dgl/graph_index.py