How to use dynamic local graph feature of GraphLab

User 79 | 4/7/2014, 3:47:36 PM


Is dynamic local graph feature is present in GraphLab 2.2? If yes please tell how to use this feature.

Regards Dinesh


User 6 | 4/7/2014, 4:34:43 PM

Hi Dinesh, Dynamic graph is enabled on default on graphlab 2.2 The way to use it is to add edges, run graph finalize, then run the engine for a few iterations. Next you can add additional edges, run graph finalize again, then run the engine again and so on.


User 79 | 4/8/2014, 5:45:35 PM

Hi DannyBickson,

Can you please share an example program for the same. I am not able to figure out in the code how I can call add_edge() function after running the engine.

Regards Dinesh

User 6 | 4/9/2014, 5:43:36 AM

Here is some pseudo code:

//construct graph as before

engine.start(); // run graphlab for a few iterations or until convergence

graph.addvertex(...) //add some vertices and edges graph.addedge( .. )


engine.strart(); //run graphlab again with the new modified graph