(self)
return result
Constructs the part in the summary that lists the graph attributes.
Constructs the part in the summary that lists the graph attributes.
Constructs the part in the summary that lists the graph attributes .
def _construct_graph_attributes(self):
        """Constructs the part in the summary that lists the graph attributes."""
        attrs = self._graph.attributes()
        if not attrs:
            return []

        result = ["+ graph attributes:"]
        attrs.sort()
        for attr in attrs:
            result.append("[[%s]]" % (attr,))
            result.append(str(self._graph[attr]))
        return result
def _construct_graph_attributes ( self ) : attrs = self . _graph . attributes ( ) if not attrs : return [ ] result = [ "+ graph attributes:" ] attrs . sort ( ) for attr in attrs : result . append ( "[[%s]]" % ( attr , ) ) result . append ( str ( self . _graph [ attr ] ) ) return result