public GraphTraversalSource getTinkerTraversal ( ) { operateOnOpenGraph ( ( ) -> null ) ; //This is to check if the graph is open if ( graphTraversalSource == null ) { graphTraversalSource = janusGraph . traversal ( ) . withStrategies ( ReadOnlyStrategy . instance ( ) ) ; } return graphTraversalSource ; }
Utility function to get a read - only Tinkerpop traversal .