def get_layout(name, *args, **kwargs):
 if (name not in _layout_map):
  raise KeyError(("Graph layout '%s' not found. Should be one of %s" % (name, AVAILABLE_LAYOUTS)))
 layout = _layout_map[name]
 if inspect.isclass(layout):
  layout = layout(*args, **kwargs)
 return layout

def get_layout ( name , * args , ** kwargs ) : if ( name not in _layout_map ) : raise KeyError ( ( "Graph layout '%s' not found. Should be one of %s" % ( name , AVAILABLE_LAYOUTS ) ) ) layout = _layout_map [ name ] if inspect . isclass ( layout ) : layout = layout ( * args , ** kwargs ) return layout
retrieve a graph layout some graph layouts accept extra options .