Package org.neo4j.graphdb.traversal

Examples of org.neo4j.graphdb.traversal.BranchOrderingPolicy


    private Iterator<Path> paths( final Node start, final Node end )
    {
        TraversalDescription base = Traversal.description().uniqueness(
                Uniqueness.RELATIONSHIP_PATH ).order(
                new BranchOrderingPolicy()
                {
                    public BranchSelector create( TraversalBranch startSource )
                    {
                        return new LiteDepthFirstSelector( startSource,
                                startThreshold );
View Full Code Here


    @Override
    public TraversalDescription build(NodeBacked start, Field field, String... params) {
        return new TraversalDescriptionImpl()
                .breadthFirst()
                .relationships(DynamicRelationshipType.withName("friends"))
                .order(new BranchOrderingPolicy() {
                    @Override
                    public BranchSelector create(final TraversalBranch startBranch) {
                        return new BranchSelector(){
                            @Override
                            public TraversalBranch next() {
View Full Code Here

TOP

Related Classes of org.neo4j.graphdb.traversal.BranchOrderingPolicy

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.