java - Gephi: Creating and streaming a dynamic graph using the toolkit -


I am trying to create a dynamic graph and stream it using the GP Toolkit. So far, I have adopted a common graph of Toolkit and Streaming plugin tutorials and have been able to broadcast it in GP GUI.

I find it hard to find out how to make the graph dynamic - I managed to add the TimeInterval column to AttributeModel and add it to the node and edge tables. But when I open the timeline window in the GUI, it says that the graph is not dynamic. Models / controllers are a bit confusing to me.

Here's the code I just have:

  ProjectController pc = Lookup.getDefault (). Lookup (ProjectController orbit); Pc.newProject (); Workbench workspace = pc.getCurrentWorkspace (); AttentController attribute control = lookup .gate default (). Lookup (Attribute Controller Class); Attribute Module Attribute Model = Attribute Controller.GetModel (); AttributeColumn nodeTimeColumn = attributeModel.getNodeTable (). AddColumn (DynamicModel.TIMEINTERVAL_COLUMN, AttributeType.TIME_INTERVAL, AttributeOrigin.PROPERTY); AttributeColumn edgeTimeColumn = attributeModel.getEdgeTable (). AddColumn (DynamicModel.TIMEINTERVAL_COLUMN, AttributeType.TIME_INTERVAL, AttributeOrigin.PROPERTY); GraphController graphController = Lookup .get defaults (). Lookup (GraphController.class); Graphmodel graphmodel = graphic controller.getmodel (); Guided graph graph = graphmodel.getdirect graph (); // At this point, I want to make the graph dynamic so that I can use the timeline feature while streaming for GUI. Streaming Server Server = Lookup .get defaults (). Lookup (streaming server). ServerControllerFactory controller Factory = Lookup.getDefault () Lookup (ServerControllerFactory.class); ServerController Server Controller = Controller Factory.createServerController (article); String reference = "/ test"; Server.register (Server Controller, Reference);    

GopiGraph Streaming, in principle, it is optional to visualize changes in real time So in the graph using a lot of memory from loading a large dynamic graph, at each point on time, you do not have full dynamic graph in the memory, but a static graph representing the present state of the graph. This is the reason that, by default, creates a plugin and just updates a static graph.

Unfortunately, it is not possible to update a dynamic graph using graph streaming, we are planning to support it in the near future, and these types of operations will be available by changing the following operations:

As you can see in this file, there is no operation in the dynamic properties; New nodes / edges / attributes have been added, modified or removed, but there is no update to dynamic columns.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -