Hi Clark,

Thanks for the response. I am putting my issue again here. Hope you can 
understand.

1) I have a graph where each node corresponds to a crime incident (with 
lat-lon information). Each crime incident (node) is labelled with 
crime_type (murder, robbery etc. in lines of actor, director for a movie 
database). 

2) Two nodes are joined by a relationship if crimes represented by two 
nodes happen within 10KM of distance.

3) It is trivial to find 2 crime incidents(nodes) of two different labels 
which are having a relationship (query is simple)

4) Now I wish to find 3 crime incidents of three different labels such that 
there is relationship between every two of them. So, they essentially form 
a clique.  Similarly I wish to find 4,5,..n crime incidents such that for 
each size for each result all of incidents form a clique(all within 10KM) 
and they belong to different crime type.

My result would be (n1,n2,n3) such that n1 and n2 happened within 10KM (so 
there is a relationship), n2 and n3 happened within 10KM (so there is a 
relationship), n1 and n3 happened within 10KM (so there is a relationship) 
- Essentially n1,n2,n3 form a clique of size-3. Moreover n1,n2&n3 each 
belong to a different crime type (no two of them are of same crime type)

I wish to formulate query for above scenario but unsuccessful. I hope I am 
more clear now. Please help me out by suggesting an efficient way to do it. 
Thanks


On Saturday, 23 August 2014 20:02:17 UTC+5:30, Mohana Krishna wrote:
>
> 1) Does Neo4j allow undirected edges between two nodes? If so, what is 
> syntax?
>
> 2) I want to query my graph db to find cliques of fixed size but each node 
> in the clique is of different class. 
>   
> Eg: If there are nodes of three classes say A,B,C,D in graph db, I wish to 
> find all size-3 cliques and size-4 cliques such that each of nodes in a 
> given clique belong to different classes.
>
>  I was not able to formulate query precisely. What is the *efficient way* 
> of querying this?
>
>
> Somebody please help. Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to