Package org.neo4j.graphdb

Examples of org.neo4j.graphdb.Direction


            TraversalDescription description = gsm.isRemote() ? RestTraversal.description().maxDepth( depth ) : Traversal.description().evaluator( Evaluators.toDepth( depth ) );
            description.breadthFirst().evaluator( Evaluators.all() );
            relTypes.clear();
            for ( DirectedRelationship directedRel : directedRels )
            {
                Direction d = directedRel.hasDirection() ?  directedRel.getDirection() : Direction.BOTH;
                description.relationships( directedRel.getRelType(), d );
                relTypes.add( directedRel.getRelType() );
            }
            for ( Node currentNode : description.traverse( node ).nodes() )
            {
View Full Code Here


            {
                @Override
                public Color call() throws Exception
                {
                    Relationship randomRel = null;
                    Direction randomDir = null;
                    for ( Direction direction : settings.getDirections() )
                    {
                        for ( Relationship rel : node.getRelationships( direction ) )
                        {
                            RelationshipType type = rel.getType();
View Full Code Here

TOP

Related Classes of org.neo4j.graphdb.Direction

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.