how to create an undirected graph.please tell me the API.
every time i create a graph,it is a directed graph,such as A---B;but not
B---A
thx~~
--
View this message in context:
http://neo4j-user-list.438527.n3.nabble.com/undirected-graph-tp2758690p2758690.html
Sent from the Neo4J User List
In Neo, all relationships can be traversed in either direction.
-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On
Behalf Of
Sent: Thursday, March 31, 2011 9:53 AM
To: user@lists.neo4j.org
Subject: [Neo4j] undirected graph
how to create
Hi there,
you always create directed edges. However, if you don't want to take
directions into account, just ignore the directions in your traversals
using
for ( Path position : Traversal.description()
.depthFirst()
.relationships( LIKES, Direction.BOTH )
.prune(
you mean that there are no differences between undirected graph and directed
graph in neo4j?
--
View this message in context:
http://neo4j-user-list.438527.n3.nabble.com/undirected-graph-tp2758690p2758790.html
Sent from the Neo4J User List mailing list archive at Nabble.com.
Exactly.
Just treat a directed graph undirected by ignoring the direction of
relationships.
Cheers,
/peter neubauer
GTalk: neubauer.peter
Skype peter.neubauer
Phone +46 704 106975
LinkedIn http://www.linkedin.com/in/neubauer
Twitter http://twitter.com/peterneubauer
5 matches
Mail list logo