giraph-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alessandro Presta (JIRA)" <>
Subject [jira] [Created] (GIRAPH-221) Make iteration over edges more explicit
Date Wed, 27 Jun 2012 16:50:42 GMT
Alessandro Presta created GIRAPH-221:

             Summary: Make iteration over edges more explicit
                 Key: GIRAPH-221
             Project: Giraph
          Issue Type: Improvement
          Components: graph
            Reporter: Alessandro Presta
            Assignee: Alessandro Presta
            Priority: Minor

Is there any particular reason why BasicVertex implements Iterable?

It seems to me that doing
for (I neighbor : vertex)
is not that explicit, and
for (I neighbor : this)
gets even obscure (which may be why all examples in the codebase explicitly instantiate an
iterator and call next()).

What I propose is a more explicit
Iterable<I> outEdgesIterator()
and also a convenient
Iterable<I> outEdges()
so, for example, an algorithm can use
for (int neighbor : outEdges())

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message