Package org.neo4j.kernel

Examples of org.neo4j.kernel.Traversal.description()


    int resCnt =0;
    for (Node author:graphDB.getAllNodes()){
      if (!author.hasProperty("name"))continue;
      if (++qCnt>numQueries)break;
      Traversal t = new Traversal();
      for (Path p:t.description().breadthFirst().relationships(DBRelationshipTypes.WRITTEN_BY).evaluator(Evaluators.atDepth(2)).uniqueness(Uniqueness.NONE).traverse(author)){
        Node coAuthor = p.endNode();
        resCnt++;
      }     
    }   
    return resCnt;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.