thanks mattias.
----- Mensaje original -----
De: "Mattias Persson" <[email protected]>
Para: "Neo4j user discussions" <[email protected]>
Enviados: Sábado, 19 de Febrero 2011 8:41:20 GMT -08:00 Región del Pacífico EE.
UU./Canadá
Asunto: Re: [Neo4j] return all relationship
I'd do something like this:
Iterator<Relationship> allRels = new NestingIterator<Relationship,
Node>( db.getAllNodes() )
{
@Override
protected Iterator<Relationship> createNestedIterator( Node item
)
{
return item.getRelationships( Direction.OUTGOING
).iterator();
}
};
There's a NestingIterable also if an Iterable<Relationship> is desired.
2011/2/19 Jose Angel Inda Herrera <[email protected]>
> hello list,
> how can i get all relationship of my graph, as iterator,
> thank beforehand.
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>
--
Mattias Persson, [[email protected]]
Hacker, Neo Technology
www.neotechnology.com
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user