Neo4j releationships always have a direction, you can just chose to ignore
them at query time.


MATCH (a:Port {id:232})-[:LinkTo]-(b)
RETURN a,b

Michael

On Fri, Dec 23, 2016 at 8:10 AM, Krishna Mahi <[email protected]> wrote:

> Its been mentioned in Neo4J Developer Manual v3.1 that, Cypher uses "--"
> to load undirected relationships.
> I have been scratching my head, on how to load undirected graph. But every
> graph gets into directed.
> The import CQL which I have given is. I tried loading with "--", but it
> gets rejected. Can anyone please help me in this regard. I want to load
> undirected graph.
>
> LOAD CSV FROM "file:///E:/HVR_1.csv" as row
>
> MERGE (u:Port1 {id: toInt(row[0])})
>
> MERGE (t:Port1 {id: toInt(row[1])})
>
> MERGE (u)-[:LinkTo]-(t)
>
> --
> 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