Neo4j Integration

The Data2Neo library comes with a set of abstract classes that simplify the interaction with neo4j in python. They are derived from the now EOL library py2neo. This includes python objects to represent Node and Relationship objects as well as a Subgraph object that can be used to represent a set of nodes and relationships. Node and Relationship objects are themself a Subgraph. The functions create and merge can be used to create or merge a Subgraph into a neo4j database given a neo4j session. To sync local Subgraph objects with the database, use the push and pull functions.Further use the functions match_nodes and match_relationships to match elements in the graph and return a list of Node or Relationship. We refer to the neo4j documentation for more information.