Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void traverseThroughNodeWithLoop()
        public virtual void TraverseThroughNodeWithLoop()
        {
            /*
             * (a)-->(b)-->(c)-->(d)-->(e)
             *             /  \ /  \
             *             \__/ \__/
             */

            CreateGraph("a TO b", "b TO c", "c TO c", "c TO d", "d TO d", "d TO e");

            using (Transaction tx = BeginTx())
            {
                Node a = GetNodeWithName("a");
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.neo4j.graphdb.Node e = getNodeWithName("e");
                Node                 e              = GetNodeWithName("e");
                Evaluator            onlyEndNode    = path => Evaluation.ofIncludes(path.endNode().Equals(e));
                TraversalDescription basicTraverser = GraphDb.traversalDescription().evaluator(onlyEndNode);
                ExpectPaths(basicTraverser.Traverse(a), "a,b,c,d,e");
                ExpectPaths(basicTraverser.Uniqueness(Uniqueness.RELATIONSHIP_PATH).traverse(a), "a,b,c,d,e", "a,b,c,c,d,e", "a,b,c,d,d,e", "a,b,c,c,d,d,e");
                tx.Success();
            }
        }
Example #2
0
 public PathEvaluator_AdapterAnonymousInnerClass9(Org.Neo4j.Graphdb.traversal.Evaluation evaluationIfMatch, Org.Neo4j.Graphdb.traversal.Evaluation evaluationIfNoMatch, ISet <Node> endNodes)
 {
     this._evaluationIfMatch   = evaluationIfMatch;
     this._evaluationIfNoMatch = evaluationIfNoMatch;
     this._endNodes            = endNodes;
 }
Example #3
0
 public PathEvaluator_AdapterAnonymousInnerClass8(Org.Neo4j.Graphdb.traversal.Evaluation evaluationIfMatch, Org.Neo4j.Graphdb.traversal.Evaluation evaluationIfNoMatch, Node target)
 {
     this._evaluationIfMatch   = evaluationIfMatch;
     this._evaluationIfNoMatch = evaluationIfNoMatch;
     this._target = target;
 }
Example #4
0
 public PathEvaluator_AdapterAnonymousInnerClass7(Org.Neo4j.Graphdb.traversal.Evaluation evaluationIfMatch, Org.Neo4j.Graphdb.traversal.Evaluation evaluationIfNoMatch, ISet <string> expectedTypes)
 {
     this._evaluationIfMatch   = evaluationIfMatch;
     this._evaluationIfNoMatch = evaluationIfNoMatch;
     this._expectedTypes       = expectedTypes;
 }
Example #5
0
 public PathEvaluator_AdapterAnonymousInnerClass6(Org.Neo4j.Graphdb.traversal.Evaluation evaluationIfMatch, Org.Neo4j.Graphdb.traversal.Evaluation evaluationIfNoMatch, RelationshipType type)
 {
     this._evaluationIfMatch   = evaluationIfMatch;
     this._evaluationIfNoMatch = evaluationIfNoMatch;
     this._type = type;
 }