Examples of GraphTraversal


Examples of com.tinkerpop.gremlin.process.graph.GraphTraversal

                traversal.withSugar();
            final TraversalVertexProgram vertexProgram = traversal.program();
            final ComputerResult computerResult = traversal.result().get();
            this.shell.getInterp().getContext().setProperty(RESULT, computerResult);

            final GraphTraversal traversal2 = new DefaultGraphTraversal<>();
            traversal2.addStep(new ComputerResultStep<>(traversal2, computerResult, vertexProgram, false));
            traversal2.range(0, 19);
            return traversal2;
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

Examples of org.geotools.graph.traverse.GraphTraversal

      }
     
      public void finish() { }
    };
   
    GraphTraversal traversal =
      new BasicGraphTraversal(graph,walker,iterator);
    traversal.init();
    traversal.traverse();

    if(sorted.size() != types.size()) {
      throw new RuntimeException("Internal error in schema dependency sort");
    }
View Full Code Here

Examples of org.geotools.graph.traverse.GraphTraversal

  public boolean containsCycle() {
    //initialize visited counter
    m_nvisited = 0;
   
    //create the traversal that uses the topological iterator
    GraphTraversal traversal = new BasicGraphTraversal(
      m_graph, this, m_iterator
    );
    traversal.init();
    traversal.traverse();
       
    //if all nodes visited then no cycle
    if (m_graph.getNodes().size() == m_nvisited) return(false);
    return(true);
  }
View Full Code Here

Examples of org.springframework.data.neo4j.annotation.GraphTraversal

import static org.springframework.data.neo4j.support.DoReturn.doReturn;

public class TraversalFieldAccessorFactory implements FieldAccessorFactory<NodeBacked> {
  @Override
    public boolean accept(final Neo4JPersistentProperty f) {
        final GraphTraversal graphEntityTraversal = f.getAnnotation(GraphTraversal.class);
        return graphEntityTraversal != null
                && graphEntityTraversal.traversalBuilder() != FieldTraversalDescriptionBuilder.class
                && f.getType().equals(Iterable.class);
    }
View Full Code Here

Examples of org.springframework.data.neo4j.annotation.GraphTraversal

      private Class<?> target;
        protected String[] params;

        public TraversalFieldAccessor(final Neo4JPersistentProperty property) {
          this.property = property;
            final GraphTraversal graphEntityTraversal = property.getAnnotation(GraphTraversal.class);
          this.target = resolveTarget(graphEntityTraversal,property);
            this.params = graphEntityTraversal.params();
            this.fieldTraversalDescriptionBuilder = createTraversalDescription(graphEntityTraversal);
      }
View Full Code Here

Examples of org.springframework.data.neo4j.annotation.GraphTraversal

        this.template = template;
    }

    @Override
    public boolean accept(final Neo4jPersistentProperty f) {
        final GraphTraversal graphEntityTraversal = f.findAnnotation(GraphTraversal.class);
        return graphEntityTraversal != null
                && graphEntityTraversal.traversal() != FieldTraversalDescriptionBuilder.class
                && f.getType().equals(Iterable.class);
    }
View Full Code Here

Examples of org.springframework.data.neo4j.annotation.GraphTraversal

        protected String[] params;

        public TraversalFieldAccessor(final Neo4jPersistentProperty property, Neo4jTemplate template) {
          this.property = property;
            this.template = template;
            final GraphTraversal graphEntityTraversal = property.findAnnotation(GraphTraversal.class);
          this.target = resolveTarget(graphEntityTraversal,property);
            this.params = graphEntityTraversal.params();
            this.fieldTraversalDescriptionBuilder = createTraversalDescription(graphEntityTraversal);
      }
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.