(self, layout_string)
Use a layout from the layout strings.
Use a layout from the layout strings.
Use a layout from the layout strings .
def set_layout_type(self, layout_string):
        """Use a layout from the layout strings."""
        layout = self._GRAPH_LAYOUTS.get(layout_string)
        if layout:
            self.layout = layout(self.graph)
def set_layout_type ( self , layout_string ) : layout = self . _GRAPH_LAYOUTS . get ( layout_string ) if layout : self . layout = layout ( self . graph )