Hey Cary

It's a little cheating
But in situtations like this we create TWO relationships to each node

One
NodeA -> same_name_rel -> NodeB

The other
NodeA -> same_name_rel_unique_id -> NodeB

This allows easy traversal

Does this make sense?

T

Sent from my iPhone so please excuse typos adn brevity

Tim Langley
+44 7989 539363

On 17 Mar 2010, at 21:47, Cary Cherng <[email protected]> wrote:

> I have a very long sequence of numbers. Each number is interpreted as
> edges. I need to traverse the path defined by these edges but each
> node has many edges.
>
> Suppose I have the sequence 94, 3, 6. The problem I am encountering is
> that each node has many many edges I need to look at. From the initial
> node to find the first node in the path I need to look at every edge
> and check if its property is 94.
>
> Is there a way to optimize this such as making the property number a
> dynamic type?
> _______________________________________________
> Neo mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
_______________________________________________
Neo mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to