(self, encoder=None)
Constructs a Gephi graph streamer that will post graphs to a
        given file-like object or a Gephi connection.

        `encoder` must either be ``None`` or an instance of ``json.JSONEncoder``
        and it must contain the JSON encoder to be used when posting JSON objects.
Constructs a Gephi graph streamer that will post graphs to a
        given file-like object or a Gephi connection.
Constructs a Gephi graph streamer that will post graphs to a given file - like object or a Gephi connection .
def __init__(self, encoder=None):
        """Constructs a Gephi graph streamer that will post graphs to a
        given file-like object or a Gephi connection.

        `encoder` must either be ``None`` or an instance of ``json.JSONEncoder``
        and it must contain the JSON encoder to be used when posting JSON objects.
        """
        self.encoder = encoder or json.JSONEncoder(ensure_ascii=True)
        self.format = GephiGraphStreamingAPIFormat()
def __init__ ( self , encoder = None ) : self . encoder = encoder or json . JSONEncoder ( ensure_ascii = True ) self . format = GephiGraphStreamingAPIFormat ( )