Package org.neo4j.kernel

Examples of org.neo4j.kernel.Traversal


    int qCnt = 0;
    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

Related Classes of org.neo4j.kernel.Traversal

Copyright © 2018 www.massapicom. 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.