(self, vertex_attrs=None, edge_attrs=None)
return result
Infers the preferred alignment for the given vertex and edge attributes
        in the tables by peeking into the attribute values of the first 100 vertices
        or edges. Numeric attributes will be aligned right, everything else will be
        aligned left.
Infers the preferred alignment for the given vertex and edge attributes
        in the tables by peeking into the attribute values of the first 100 vertices
        or edges. Numeric attributes will be aligned right, everything else will be
        aligned left.
Infers the preferred alignment for the given vertex and edge attributes in the tables by peeking into the attribute values of the first 100 vertices or edges . Numeric attributes will be aligned right everything else will be aligned left .
def _infer_column_alignment(self, vertex_attrs=None, edge_attrs=None):
        """Infers the preferred alignment for the given vertex and edge attributes
        in the tables by peeking into the attribute values of the first 100 vertices
        or edges. Numeric attributes will be aligned right, everything else will be
        aligned left."""
        values = []
        if vertex_attrs is not None:
            vs = self._graph.vs[:100]
            values.extend(vs[attr] for attr in vertex_attrs)
        if edge_attrs is not None:
            es = self._graph.es[:100]
            values.extend(es[attr] for attr in edge_attrs)

        result = []
        for vs in values:
            is_numeric = True
            try:
                [float(x) for x in vs]
            except ValueError:
                is_numeric = False
            if is_numeric:
                result.append("r")
            else:
                result.append("l")

        return result
def _infer_column_alignment ( self , vertex_attrs = None , edge_attrs = None ) : values = [ ] if vertex_attrs is not None : vs = self . _graph . vs [ : 100 ] values . extend ( vs [ attr ] for attr in vertex_attrs ) if edge_attrs is not None : es = self . _graph . es [ : 100 ] values . extend ( es [ attr ] for attr in edge_attrs ) result = [ ] for vs in values : is_numeric = True try : [ float ( x ) for x in vs ] except ValueError : is_numeric = False if is_numeric : result . append ( "r" ) else : result . append ( "l" ) return result