This method exports node values (e.g. community information, betwenness centrality values) to a CSV file. The values can then be imported to Gephi.
values (list(float) or networkit.Partition) – Python list or Partition object that contains the values to be exported.
fpath (str) – The file including its path to be written to.
column_name (str) – Name of the column as description for the data.
Allow a Python script to communicate with Gephi using the Gephi Graph Streaming protocol and plugin.
Bases: JSONClient
Supporter class for GephiStreamingclient.
Creates a GephiClient, which is derived from JSONClient. The internal _send
-function is changed
in order to update the Gephi server.
url (str, optional) – URL of the Gephi server. Default: http://127.0.0.1:8080/workspace0
autoflush (bool, optional) – Indicates whether autoflush is enabled. Default: False
Bases: JSONClient
Bases: object
Supporter class for Gephiclient. Used to encapsulate data in JSON-format.
autoflush (int, optional) – Enables automatic after certain data additions. Default = 0
enable_timestamps (bool, optional) – Enable timestamps for data entries. Default: False
process_event_hook (function, optional) – Custom event hook function. Default: None
Add a “add edge” event to the data stream.
id (int) – Edge id.
source (int) – Source node id.
target (int) – Target node id.
directed (bool, optional) – Indicates whether edge is directed. Default: True
attributes (dict()) – Attributes, which should be associated with the edge.
Add a “add node” event to the data stream.
id (int) – Node id.
flush (bool, optional) – Parameter not used.
attributes (**kwargs) – Attributes, which should be associated with the node.
Add a “change edge” event to the data stream.
id (int) – Edge id.
source (int) – Source node id.
target (int) – Target node id.
directed (bool, optional) – Indicates whether edge is directed. Default: True
attributes (dict()) – Attributes, which should be associated with the edge.
Add a “change node” event to the data stream.
id (int) – Node id.
flush (bool, optional) – Parameter not used.
attributes (dict()) – Attributes, which should be associated with the.
Add a “clean” event to the data stream.
Add a “delete edge” event to the data stream.
id (int) – Edge id.
source (int) – Source node id.
target (int) – Target node id.
directed (bool, optional) – Indicates whether edge is directed. Default: True
attributes (dict()) – Attributes, which should be associated with the edge.
Add a “delete node” event to the data stream.
id (int) – Node id.
Sends all data and clear buffer.
Increment number of unflushed dumps. Is resetted based on the value of autoflush.
This module provides methods to export data from NetworKit directly to Gephi using the Gephi Streaming Plugin.
Bases: object
A python singleton providing access to a running Master instance of the Gephi Streaming plugin.
url (str, optional) – URL of the Gephi server. Default: http://127.0.0.1:8080/workspace0
Cleans the first workspace in Gephi.
Adds an edge (u,v) in an already exported graph. If the edge is already present, nothing happens. If the graph is directed, the edge goes from u to v.
u (int) – The first node.
v (int) – The second node.
Exports the x and y coordinates for each node in given graph.
graph (networkit.Graph) – The input graph.
scale (int) – Determines the exported x and y coordinates. Using default scale=1, all node coordinates are being exported, increasing the scale decreases the number of node coordinates being exported.
This method exports an edge attribute to gephi using the Gephi Streaming Plugin. Use exportGraph(Graph) first to export graph itself.
graph (networkit.Graph) – The input graph.
values (list(float) or networkit.Partition) – Python list or Partition object that contains the values to be exported.
attribute_name (str) – Name of the node attribute in Gephi.
Export a given event stream of networkit.dynamics.GraphEvent to Gephi server.
stream (list(networkit.dynamics.GraphEvent)) – The input stream.
timeStepDelay (int, optional) – Add a delay (in ms) for every time step event. Default: 0
Exports the given graph to gephi. No attributes or weights are exported. Please note that only graphs with indexed edges can be exported, so edges will be indexed if neccessary.
graph (networkit.Graph) – The input graph.
This method exports node values (e.g. community information, betwenness centrality values) to gephi using the Gephi Streaming Plugin. Use exportGraph(Graph) first to export the graph itself.
graph (networkit.Graph) – The input graph.
values (list(float) or networkit.Partition) – Python list or Partition object that contains the values to be exported.
attribute_name (str) – Name of the node attribute in Gephi.
Removes an edge from an already exported graph.
u (int) – The first node.
v (int) – The second node.