diff --git a/README.md b/README.md index 5bb19c9..30affad 100644 --- a/README.md +++ b/README.md @@ -36,4 +36,13 @@ In order to use that algorithm on custom graph implementation/graph databases, o ### arebac-neo4j -The `arebac-neo4j` module contains an implementation of `AttributedGraph` that uses an embedded Neo4J database that can be used to evaluate graph patterns against a Neo4J database with the GP-Eval algorithm. \ No newline at end of file +The `arebac-neo4j` module contains an implementation of `AttributedGraph` that uses an embedded Neo4J database that can be used to evaluate graph patterns against a Neo4J database with the GP-Eval algorithm. + +```java +GraphDatabaseService database = getDatabase(); +GraphPattern pattern = createGraphPattern(); +try(Transaction tx = database.beginTx()){ + Set> results = GPEval.evaluate(dbAsGraph, pattern); + System.out.println(results); +} +``` \ No newline at end of file