org.neo4j.graphmatching (Neo4j Community 2.1.0-M01 API)
Date: 2014-02-20

@Deprecated

# Package org.neo4j.graphmatching

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

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  ValueMatcher | Deprecated

- Class Summary
  Class | Description
  --- | ---
  AbstractPatternObject<T extends PropertyContainer> | Deprecated
  ArrayPropertyUtil | Deprecated
  CommonValueMatchers | Deprecated
  PatternElement | Deprecated
  PatternGroup | Deprecated
  PatternMatch | Deprecated
  PatternMatcher | Deprecated
  PatternNode | Deprecated
  PatternRelationship | Deprecated
  PatternUtil | Deprecated

## 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 );
     }

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