[
https://issues.apache.org/jira/browse/HAMA-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13854646#comment-13854646
]
Anastasis Andronidis commented on HAMA-831:
-------------------------------------------
I also believe that the variables should be set as null in the beginning:
{code}
Vertex<V, E, M> vertex = null
Vertex<V, E, M> currentVertex = null
{code}
and maybe add an if statement in the code, out of the while loop:
{code}
if (vertex != null) {
// add last one.
vertex.setRunner(this);
vertex.setup(conf);
if (selfReference) {
vertex.addEdge(new Edge<V, E>(vertex.getVertexID(), null));
}
vertices.addVertex(vertex);
}
{code}
> Support for multi Vertex/Edge pairs input
> -----------------------------------------
>
> Key: HAMA-831
> URL: https://issues.apache.org/jira/browse/HAMA-831
> Project: Hama
> Issue Type: Bug
> Components: graph
> Affects Versions: 0.6.3
> Reporter: Edward J. Yoon
> Assignee: Edward J. Yoon
> Fix For: 0.7.0
>
> Attachments: HAMA-831.patch
>
>
> See
> https://issues.apache.org/jira/browse/HAMA-790?focusedCommentId=13773722&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13773722
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)