How can I read data from a specific vertex in a distributed_graph?

User 334 | 3/18/2015, 1:12:47 PM

For instance, I have this inference algorithm that runs distributed on the graph, and after it runs I need to access data in a particular vertex. How do I do that?

What I am trying to get is something like it:

<pre class="CodeBlock"><code>vertexdata inference(){ graphlab::omniengine<BeliefProp> engine(distctrl, dgraph, "sync"); engine.signalall(); engine.start(); return getData(distributedgraph, distributedcontrol, vertex_id); }</code></pre>

Thank you for your time and help :smiley:


User 334 | 3/18/2015, 1:14:04 PM

I am trying to implement some algorithms using the PowerGraph framework

User 1190 | 3/18/2015, 4:23:35 PM


You can use <pre><code>procidt master(vertexid vid)</code></pre> to determine the master who owns the vertex data. Then you can use RPC call of the function <pre><code>vertextype vertex(vertexid_type vid)</code></pre> on that machine to get the vertex data.

Thanks, -jay