Created
July 31, 2012 17:04
-
-
Save okram/3218519 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Iterator<Neo4jEdge> iterator() { | |
final Iterator<Relationship> itty; | |
if (labels.length > 0) | |
itty = node.getRelationships(direction, labels).iterator(); | |
else | |
itty = node.getRelationships(direction).iterator(); | |
return new Iterator<Neo4jEdge>() { | |
public Neo4jEdge next() { | |
return new Neo4jEdge(itty.next(), graph); | |
} | |
public boolean hasNext() { | |
return itty.hasNext(); | |
} | |
public void remove() { | |
itty.remove(); | |
} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment