[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Gephi forums •Graph streaming from C++ library to Gephi as client
Page 1 of 1

Graph streaming from C++ library to Gephi as client

Posted: 28 May 2013 18:30
by lynchs61
I have a C++ library I've been developing to study a particular dynamic graph construction that I'm using to model a physical system. I have a few different ways to visualize the graphs using policy classes (so it's easy to plug in different ways of doing this). One of the policies writes the dynamic data to a file in the GEXF format. But now I want to make it so the the data is streamed from the running application and viewed real time in Gephi.

My understanding of this is that I would set up Gephi as the Graph Streaming client, start an HTTP server from the C++ library, and then send the dynamic data over HTTP from C++ to Gephi.

Unfortunately this is about the extent of my understanding. So my question is: Has anyone done this before? I've seen some example videos but they seem to just show the visual outcome, not how it was actually done. Also I've never seen this done using C++ before and I'm a little lost as to how to do this over HTTP from C++.

Any information would be appreciated. Thanks

Re: Graph streaming from C++ library to Gephi as client

Posted: 05 Jun 2013 13:59
by panisson
Hi, I've never seen an example of graph streaming using C++.
If you think it is possible to make your C++ code available as a python module, you can use the python examples (https://github.com/panisson/pygephi_graphstreaming) to implement it. You can do it using Cython, for example.
Otherwise, I think you'll have to re-implement the same APIs in C++.