# ``igraph`.`remote`.`gephi`.`GephiConnection``

class documentation

`class GephiConnection: (source)`

Constructor: `GephiConnection(url, host, port, workspace)`

View In Hierarchy

Object that represents a connection to a Gephi master server.

Method | `__del__` | Undocumented
Method | `__init__` | Constructs a connection to a Gephi master server.
Method | `__repr__` | Undocumented
Method | `close` | Flushes all the pending operations to the Gephi master server in a single request.
Method | `flush` | Flushes all the pending operations to the Gephi master server in a single request.
Method | `url.setter` | Undocumented
Method | `write` | Sends the given raw data to the Gephi streaming master server in an HTTP POST request.
Property | `url` | The URL of the Gephi workspace where the data will be sent.
Method | `_construct_default_url` | Undocumented
Instance Variable | `_autoflush_threshold` | Undocumented
Instance Variable | `_get_url` | Undocumented
Instance Variable | `_pending_operations` | Undocumented
Instance Variable | `_update_url` | Undocumented
Instance Variable | `_url_root` | Undocumented

def __del__(self): (source)

Undocumented

def __init__(self, url=None, host='127.0.0.1', port=8080, workspace=1): (source)

Constructs a connection to a Gephi master server.

The connection object can be constructed either by specifying the `url` directly, or by specifying the `host`, `port` and `workspace` arguments. The latter three are evaluated only if `url` is None; otherwise the `url` will take precedence.

The `url` argument does not have to include the operation (e.g., `?operation=updateGraph`); the connection will take care of it. E.g., if you wish to connect to workspace 2 in a local Gephi instance on port 7341, the correct form to use for the `url` is as follows:

    http://localhost:7341/workspace0

def __repr__(self): (source)

Undocumented

def close(self): (source)

Flushes all the pending operations to the Gephi master server in a single request.

def flush(self): (source)

Flushes all the pending operations to the Gephi master server in a single request.

@url.setter
def url(self, value): (source)

Undocumented

def write(self, data): (source)

Sends the given raw data to the Gephi streaming master server in an HTTP POST request.

@property
url = (source)

The URL of the Gephi workspace where the data will be sent.

def _construct_default_url(self, host, port, workspace): (source)

Undocumented

_autoflush_threshold: `int` = (source)

Undocumented

_get_url = (source)

Undocumented

_pending_operations: `list` = (source)

Undocumented

_update_url = (source)

Undocumented

_url_root = (source)

Undocumented