hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Yoon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HAMA-767) [GSoC 2013] Vertex addition and removal
Date Fri, 19 Jul 2013 11:00:48 GMT

    [ https://issues.apache.org/jira/browse/HAMA-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13713553#comment-13713553
] 

Edward J. Yoon commented on HAMA-767:
-------------------------------------

Here's my suggestion. You can solve by adding only few lines.

{code}
  private void doSuperstep(GraphJobMessage currentMessage,
      BSPPeer<Writable, Writable, Writable, Writable, GraphJobMessage> peer)
      throws IOException {

      ...
      int activeVertices = 0;
      int changedVertexCnt = 0;


      ...
      aggregationRunner.sendAggregatorValues(peer, activeVertices, changedVertexCnt);
{code}

and, 

{code}
      // send the updates from the master tasks back to the slaves
      for (String peerName : peer.getAllPeerNames()) {
        peer.send(peerName, new GraphJobMessage(updatedCnt));
        peer.send(peerName, new GraphJobMessage(changedVertexCnt)); // new line
      }
{code}
                
> [GSoC 2013] Vertex addition and removal
> ---------------------------------------
>
>                 Key: HAMA-767
>                 URL: https://issues.apache.org/jira/browse/HAMA-767
>             Project: Hama
>          Issue Type: New Feature
>          Components: examples, graph
>    Affects Versions: 0.6.1
>            Reporter: Anastasis Andronidis
>            Assignee: Anastasis Andronidis
>              Labels: dynamic, graph, gsoc, gsoc2013, mentoring
>             Fix For: 0.6.3
>
>         Attachments: HAMA-767-addAndRemove-v1.patch, HAMA-767-addition-v1.patch, HAMA-767-examplesAndTests-v1.patch,
HAMA-767-v2.patch, HAMA-767-v3.patch
>
>
> Implement addVertex and removeVertex methods for incremental graph support on Graph API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message