@register.filter(is_safe=True)
@stringfilter
def center(value, arg):
 return value.center(int(arg))

@ register . filter ( is_safe = True ) @ stringfilter def center ( value , arg ) : return value . center ( int ( arg ) )
return the center of the graph g .