(self)
return result
Constructs the part in the summary that lists the vertex attributes.
Constructs the part in the summary that lists the vertex attributes.
Constructs the part in the summary that lists the vertex attributes .
def _construct_vertex_attributes(self):
        """Constructs the part in the summary that lists the vertex attributes."""
        attrs = sorted(self._graph.vertex_attributes())
        if not attrs or (len(attrs) == 1 and "name" in attrs):
            return []

        table = self._new_table(headers=[""] + attrs)
        table.add_rows(
            islice(self._vertex_attribute_iterator(attrs), 0, self.max_rows),
            header=False,
        )
        table.set_cols_align(["l"] + self._infer_column_alignment(vertex_attrs=attrs))

        result = ["+ vertex attributes:"]
        result.extend(table.draw().split("\n"))

        return result
def _construct_vertex_attributes ( self ) : attrs = sorted ( self . _graph . vertex_attributes ( ) ) if not attrs or ( len ( attrs ) == 1 and "name" in attrs ) : return [ ] table = self . _new_table ( headers = [ "" ] + attrs ) table . add_rows ( islice ( self . _vertex_attribute_iterator ( attrs ) , 0 , self . max_rows ) , header = False , ) table . set_cols_align ( [ "l" ] + self . _infer_column_alignment ( vertex_attrs = attrs ) ) result = [ "+ vertex attributes:" ] result . extend ( table . draw ( ) . split ( "\n" ) ) return result