thank mattias,
and oder question,
I have a class attribute is a collection of objects, then neo4j not allow me to 
take a collection property, as I can store the database in this collection,
Thanks and sorry for the trouble...
----- Mensaje original -----
De: "Mattias Persson" <matt...@neotechnology.com>
Para: "Neo4j user discussions" <user@lists.neo4j.org>
Enviados: Martes, 15 de Febrero 2011 15:51:54 (GMT-0500) Auto-Detected
Asunto: Re: [Neo4j] about relationship

Does this help:

   http://wiki.neo4j.org/content/Index_Framework#Relationship_indexes

?

2011/2/15 Jose Angel Inda Herrera <jai...@estudiantes.uci.cu>

> hello Mattias
> the RelationshipIndex class which would. I have that to implement this
> class.
> thank befoorhand
> ----- Mensaje original -----
> De: "Mattias Persson" <matt...@neotechnology.com>
> Para: "Neo4j user discussions" <user@lists.neo4j.org>
> Enviados: Lunes, 14 de Febrero 2011 4:18:33 (GMT-0500) Auto-Detected
> Asunto: Re: [Neo4j] about relationship
>
> You mean in the most efficient way? Currently you'll have to go with a
> relationship index if you have many edges and would like to do a fast
> lookup
> for a relationship between two nodes. You can index relationships just as
> you do nodes:
>
>  RelationshipIndex index = graphDb.index().forRelationships(
> "my-relationships" );
>  index.add( myRelationship, "myKey", "myValue" );
>  ...
>  // Either if you query for a specific property:
>  index.get( "myKey", "myValue", startNode, endNode );
>  // Or if you just query using the nodes
>  index.get( null, null, startNode, endNode );
>
> The other way is to loop relationships from one node and see if the
> otherNode of those relationships matches. Might be slower though
>
> Best,
> Mattias
>
> 2011/2/10 Jose Angel Inda Herrera <jai...@estudiantes.uci.cu>
>
> >
> > hello list,
> > How to get an edge in the graph (in this case a relationship) having the
> > two nodes of this relationship,
> >
> > thank beforhand
> > _______________________________________________
> > Neo4j mailing list
> > User@lists.neo4j.org
> > https://lists.neo4j.org/mailman/listinfo/user
> >
>
>
>
> --
> Mattias Persson, [matt...@neotechnology.com]
> Hacker, Neo Technology
> www.neotechnology.com
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to