Neo4j

@Deprecated

Package org.neo4j.graphmatching

Deprecated.
Facilities for finding occurrences of patterns in a Neo4j graph.

See: Description

Package org.neo4j.graphmatching Description

Facilities for finding occurrences of patterns in a Neo4j graph. The main classes for defining a graph pattern is the PatternNode and the PatternRelationship. The actual matching is performed by the PatternMatcher. A simple example of matching a friend of a friend pattern:

 PatternNode   me = new PatternNode(),
         myFriend = new PatternNode(),
 friendOfMyFriend = new PatternNode();

 me.createRelationshipTo( myFriend, FoafDomain.FRIEND, Direction.BOTH );
 myFriend.createRelationshipTo( friendOfMyFriend, FoafDomain.FRIEND, Direction.BOTH );

 PatternMatcher matcher = PatternMatcher.getMatcher();
 for ( PatternMatch match : matcher.match( me, startNode ) )
 {
     Node foaf = match.getNodeFor( friendOfMyFriend );
 }
 
Neo4j

Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.