[Gephi-plugins] Plugin for realtime graph generation based on web browsing

Mathieu Bastian mathieu.bastian at gmail.com
Tue Dec 7 05:43:24 CET 2010

That is cool stuff!

Yeah Generator is not the best place for doing that. I would recommend to
use Import directly, but woithout UI, to discard displaying the import
report. As you were trying to do this with Generator you are probably
already familiar with the container. Here is how to create, fill and append
a container into the current workspace.

//Get Currennt workspace
ProjectController pc = Lookup.getDefault().lookup(ProjectController.class);
Workspace workspace = pc.getCurrentWorkspace();

//Get container
Container container =

//Append container to current graph
ImportController importController =
importController.process(container, new AppendProcessor(), workspace);


On Mon, Dec 6, 2010 at 7:24 PM, T B <phreakocious at gmail.com> wrote:

> A bit more information..
> Adding a 20 second sleep() to the generate() function results in 20 seconds
> of data collected, so this seems like the wrong place for real time
> updating. =)  Advice would be really helpful at this point.
> Here's an example from my Perl/Streaming solution of some gephi.org and
> wiki.gephi.org browsing:
> http://phreakocious.net/dev/httpgraph.gephi
> [image: httpgraph.png]
> On Mon, Dec 6, 2010 at 1:29 PM, T B <phreakocious at gmail.com> wrote:
>> Gephi devs,
>> The idea is to stream data about your web browsing directly into Gephi in
>> real-time.
>> After successfully proving out the concept with a Perl script and the
>> Streaming plugin, I'm trying to implement it in Java.  I've embedded
>> LittleProxy (http://www.littleshoot.org/littleproxy/) and extended a few
>> classes to collect the necessary data and now need to create the appropriate
>> nodes/edges on the graph.
>> Currently trying to do this as a Generator, but running into some
>> problems.  Because this would run indefinitely in the background, the
>> controlling thread that updates the graph needs to be around whenever new
>> updates are available, but this doesn't seem to be the way that the
>> Generator class works.  Does it make more sense to do this as an Import?
>> I'd appreciate any feedback you might have as I'm really close to having
>> this done!
>> Thanks!
> _______________________________________________
> gephi-plugins mailing list
> gephi-plugins at lists.gephi.org
> http://gephi.org/mailman/listinfo/gephi-plugins
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gephi.org/pipermail/gephi-plugins/attachments/20101206/9e744a74/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: httpgraph.png
Type: image/png
Size: 167162 bytes
Desc: not available
URL: <http://gephi.org/pipermail/gephi-plugins/attachments/20101206/9e744a74/attachment-0001.png>

More information about the gephi-plugins mailing list