Basic Neo4j Code Examples 2008-05-08
Basic Neo4j Code Examples 2008-05-08
Neo
Emil Eifrem
42
KNOWS
7
S KNOW
KNOWS
KN O WS
CODED_BY
KN
OW
13
name = Agent Smith version = 1.0b language = C++
age = 3 days
2
name = Trinity
42
KNOWS
7
S KNOW
KNOWS
KN O WS
CODED_BY
KN
OW
13
name = Agent Smith version = 1.0b language = C++
age = 3 days
2
name = Trinity
name = The Architect name = Morpheus rank = Captain occupation = Total badass disclosure = public
42
KNOWS
7
KNOW S
KNOWS
KN O WS
CODED_BY
KN
OW
13
name = Agent Smith version = 1.0b language = C++
age = 3 days
2
name = Trinity
$ bin/start-neo-example Mr Anderson's friends: At At At At $ depth depth depth depth 1 1 2 3 => => => => Morpheus Trinity Cypher Agent Smith
42
KNOWS
7
S KNOW
KNOWS
KN O WS
CODED_BY
KN LO
OW
13
name = Agent Smith version = 1.0b language = C++
VE
2
name = Trinity
name = The Architect name = Morpheus rank = Captain occupation = Total badass disclosure = public
42
1
S LO VE
KNOW S
KN
7
KNOW S
KNOW S
K NO W S
CODED_BY
OW
13
name = Agent Smith version = 1.0b language = C++
2
name = Trinity
new ReturnableEvaluator() { public boolean isReturnableNode( TraversalPosition pos) { return pos.currentNode(). hasRelationship( RelTypes.LOVES, Direction.OUTGOING ); } },
Summary
API details http://api.neo4j.org Feedback http://lists.neo4j.org Download http://neo4j.org/download Business http://neotechnology.com
www.neo4j.org