Hmm in general what you describe should be possible as a series of WITH
connected steps of a cypher query.

Michael

On Mon, Oct 20, 2014 at 6:30 AM, Alireza Rezaei Mahdiraji <
[email protected]> wrote:

>
> Hi Michael,
>
> A brief of my use case is as follows:
>
> Given a graph with several types of nodes which are connected by one type
> relationship, I check if a specific type (say type V) of
> nodes satisfy a predicate (expression as a logical DNF or so). The result
> will contains nodes of type V which satisfy the predicate
> and some of their neighbouring nodes. I have several strategies for
> specifying what other type of nodes should include in the result.
> The result maybe feed to another step to do filtering (or other
> operations) based on another type of nodes, etc.
> I know with WITH clause we pass result to the next step, but in this case
> I do not know how to build the result from first step as graph and input it
> to
> the next step. Perhaps this is not an easy case to be implemented directly
> by Cypher, I did it by the API.
>
> Thanks,
> Alireza
>
>
>
>
> On Friday, October 17, 2014 6:55:32 PM UTC+2, Michael Hunger wrote:
>>
>> Nope, not yet, we plan something like that for the future but right now
>> now.
>>
>> But you can just continue your query with with and continue to explore
>> the graph step by step?
>>
>> What is your actual use-case?
>>
>> On Fri, Oct 17, 2014 at 4:46 PM, Alireza Rezaei Mahdiraji <
>> [email protected]> wrote:
>>
>>>
>>> Hi Michael,
>>>
>>> This is definitely useful, is this available from Cypher too?
>>>
>>> What I meant was to get back an object which can be further queried, is
>>> this the case for this return case? For instance,
>>> Start n=node(10)
>>>
>>> match (n)-[*1..5]->(m)
>>>
>>> return ?
>>>
>>> Can we return "?" as a graph?
>>>
>>> Thanks,
>>> Alireza
>>>
>>>
>>>
>>>
>>>
>>> On Friday, October 17, 2014 4:33:41 PM UTC+2, Michael Hunger wrote:
>>>>
>>>> Yes, see: http://docs.neo4j.org/chunked/stable/rest-api-transacti
>>>> onal.html#rest-api-return-results-in-graph-format
>>>>
>>>> On Fri, Oct 17, 2014 at 1:35 PM, Alireza Rezaei Mahdiraji <
>>>> [email protected]> wrote:
>>>>
>>>>>
>>>>> Hi All,
>>>>>
>>>>> Is it possible to return a graph as output in Cypher RETURN Clause
>>>>> instead of an iterator to
>>>>> the element? The usecase is to use the output graph for some other
>>>>> queries and perhaps
>>>>> use it in another cypher query.
>>>>>
>>>>>
>>>>> Thanks,
>>>>> Best,
>>>>> Alireza
>>>>>
>>>>>
>>>>>  --
>>>>> 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.
>>>>>
>>>>
>>>>  --
>>> 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.
>>>
>>
>>  --
> 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.
>

-- 
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