Examples of traverse()


Examples of org.neo4j.graphdb.traversal.TraversalDescription.traverse()

        TraversalDescription traversalDescription = new TraversalDescriptionImpl()
                .order(Traversal.postorderBreadthFirst())
                .prune(Traversal.pruneAfterDepth(MAXIMUM_DEPTH))
                .filter(returnEval)
                .expand(Traversal.expanderForTypes(relType, Direction.BOTH));
        final Traverser traverser = traversalDescription
                .traverse(startNode);
        return traverser.nodes().iterator();
    }

    private static class PathReturnEval implements Predicate<Path> {
View Full Code Here

Examples of org.neo4j.rest.graphdb.traversal.RestTraversal.traverse()

        rt.maxDepth(maxDepth);

        rt = fillFilter(filterBody, filterLanguage, rt);

        TraverserImpl result = new TraverserImpl();
        result.iter = rt.traverse(node).iterator();
        return result;
    }


    public static org.neo4j.graphdb.Traverser traverse(Node node, Traverser.Order order,
View Full Code Here

Examples of org.opentripplanner.routing.edgetype.LegSwitchingEdge.traverse()

        for (Vertex v : shortestPath.vertices.subList(1, shortestPath.vertices.size())) {
               State lastState = newPath.states.getLast();
               GraphPath subPath = paths.get(lastVertex).get(v);
               //add a leg-switching state
               LegSwitchingEdge legSwitchingEdge = new LegSwitchingEdge(lastVertex, lastVertex);
               lastState = legSwitchingEdge.traverse(lastState);
               newPath.edges.add(legSwitchingEdge);
             newPath.states.add(lastState);
               //add the next subpath
               for (Edge e : subPath.edges) {
                 lastState = e.traverse(lastState);
View Full Code Here

Examples of org.opentripplanner.routing.graph.Edge.traverse()

        }
       
        Edge backEdge = lastStateClicked.getBackEdge();
        State backState = lastStateClicked.getBackState();
       
        backEdge.traverse(backState);
      }
        });
        pane.add(traverseButton);
       
        return pane;
View Full Code Here

Examples of org.picocontainer.PicoVisitor.traverse()

            componentParameter,
            throwableParameter
        });
        List visitedList = new LinkedList();
        PicoVisitor visitor = new RecordingStrategyVisitor(visitedList);
        visitor.traverse(parent);
        assertEquals(expectedList, visitedList);
    }

    public void testAmbiguousDependencies() throws PicoRegistrationException, PicoInitializationException {
View Full Code Here

Examples of org.picocontainer.defaults.VerifyingVisitor.traverse()

        container.registerComponentImplementation(OtherRunnable.class);
        container.registerComponentImplementation(MockRunner.class);

        // this will fail to resolve the Runnable array on the MockRunner
        VerifyingVisitor visitor = new VerifyingVisitor();
        visitor.traverse(container);

        container.start();
        assertNotNull(container.getComponentInstanceOfType(MockRunner.class));
    }
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.VisitorBase.traverse()

            public void traverse(SimpleNode node) throws Exception {
                node.traverse(this);
            }
        };
        try {
            visitor.traverse(functionDef);
        } catch (Exception e) {
            if (e != stopVisitingException) {
                Log.log(e);
            }
        }
View Full Code Here

Examples of org.rascalmpl.interpreter.TraversalEvaluator.traverse()

      Result<IValue> subject = this.getSubject().interpret(__eval);
      TraversalEvaluator te = new TraversalEvaluator(__eval);
      try {
        __eval.__pushTraversalEvaluator(te);
       
        IValue val = te.traverse(subject.getValue(),
            blocks, DIRECTION.BottomUp,
            PROGRESS.Continuing, FIXEDPOINT.No);
       
        if (!val.getType().isSubtypeOf(subject.getType())) {
          // this is not a static error but an extra run-time sanity check
View Full Code Here

Examples of org.uengine.processpublisher.graph.SwimLaneCoordinate.traverse()

      GraphActivity graph;

      try {
        graph = (GraphActivity) adapter.convert(activity, keyedContext);
        SwimLaneCoordinate coordinate = new SwimLaneCoordinate();
        graph = coordinate.traverse(graph, null, options);
       
        if (coordinate.getRoleList().size() == 0) {
          String viewOption = (String) options.get(ViewerOptions.SWIMLANE);
          options.put(viewOption, viewOption);
        } else {
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.