Hello Craig,
I need a help from you. I want to query my graph so that I get cliques of
different sizes. Is there any inbuilt support or a way to formulate the
query? I have been trying for long but unsuccessful.
I have posted the issue in separate post but none replied. I am putting
before you my exact case:
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 hope I am clear. Please help me out by suggesting an efficient way to do
it. Thanks in advance.
On Tuesday, 12 August 2014 20:00:01 UTC+5:30, Mohana Krishna wrote:
>
> Hello,
>
> I have loaded the spatial data in the attached file using REST API script
> (which is also attached). The nodes are created and I can visualize them on
> DB.
>
> However when I perform the query
>
> "START n=node:geom('withinDistance:[41.8082, -87.7084, 10.0]') RETURN n"
> in CYPHER window , I am getting "Unknown Error" as result.
>
> Please help.
>
--
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.