This is not a bad way to get a subgraph for step 1.
neo4j-sh (?)$ START a=node(448091), b=node(6573222) MATCH p=allshortestpaths((a)-[*..10]-(b)) return extract(n IN nodes(p)| n.title), extract(r IN rels(p)| r.weight); yields a fairly clean subgraph in the form below. Not quit what I want but for step 2 I could fitter for the disctinct nodes in my java app. I am still wondering if i could get NEO4J to do the last bit of filtering (am not ready to move to 2.1 yet to try unwind). +-----------------------------------------------------------------------------------------------------------------------------------------+ | extract(n IN nodes(p)| n.title) | extract(r IN rels(p)| r.weight) | +-----------------------------------------------------------------------------------------------------------------------------------------+ | ["Fieldale","Cannon Mills","Davidson College","Edinburgh Festival Fringe","Yasser (play)"] | [<null>,<null>,0.5,<null>] | | ["Fieldale","Cannon Mills","Davidson College","The Merchant of Venice","Yasser (play)"] | [<null>,<null>,0.5,<null>] | | ["Fieldale","Bassett High School","English","Haarlem","Yasser (play)"] | [<null>,<null>,0.5,<null>] | | ["Fieldale","Cannon Mills","New York City","Haarlem","Yasser (play)"] | [<null>,<null>,0.5,<null>] | | ["Fieldale","Fieldale, Virginia","Hispanic","Moroccan","Yasser (play)"] | [<null>,0.5,0.5,<null>] | | ["Fieldale","Fieldale, Virginia","Hispanic","Arab","Yasser (play)"] | [<null>,0.5,0.5,<null>] | | ["Fieldale","Henry County, Virginia","Hispanic","Moroccan","Yasser (play)"] | [0.5,0.5,0.5,<null>] | -- 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.
