object traverse
Provides traversal functionality
- Alphabetic
- By Inheritance
- traverse
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def allPaths[E <: EdgeDocument[E, From, From], From <: Document[From]](from: Id[From], to: Id[From], maxDepth: Int, bufferSize: Int = 100, edgeFilter: (E) => Boolean = (_: E) => true)(implicit ev: =:=[Doc, E]): Stream[TraversalPath[E, From, From]]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bfs[E <: EdgeDocument[E, N, T], N <: Document[N], T <: Document[T]](startIds: Set[Id[N]], maxDepth: Int)(implicit ev: =:=[Doc, E]): EdgeTraversalBuilder[E, N, T]
Create a traversal for BFS with multiple starting nodes and specified depth
- def bfs[E <: EdgeDocument[E, N, T], N <: Document[N], T <: Document[T]](startIds: Set[Id[N]])(implicit ev: =:=[Doc, E]): EdgeTraversalBuilder[E, N, T]
Create a traversal for BFS with multiple starting nodes
- def bfs[E <: EdgeDocument[E, N, T], N <: Document[N], T <: Document[T]](startId: Id[N], maxDepth: Int)(implicit ev: =:=[Doc, E]): EdgeTraversalBuilder[E, N, T]
Create a traversal for BFS with a single starting node and specified depth
- def bfs[E <: EdgeDocument[E, N, T], N <: Document[N], T <: Document[T]](startId: Id[N])(implicit ev: =:=[Doc, E]): EdgeTraversalBuilder[E, N, T]
Create a traversal for BFS with a single starting node
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def collectReachableIds[E <: EdgeDocument[E, N, N], N <: Document[N]](startId: Id[N], maxDepth: Int = Int.MaxValue)(implicit ev: =:=[Doc, E]): Task[Set[Id[N]]]
Compatibility method for legacy code - uses the new traversal API internally but returns a backward-compatible result wrapped in a Task
- def dfs[E <: EdgeDocument[E, N, T], N <: Document[N], T <: Document[T]](startIds: Set[Id[N]], maxDepth: Int)(implicit ev: =:=[Doc, E]): EdgeTraversalBuilder[E, N, T]
Create a traversal for DFS with multiple starting nodes and specified depth
- def dfs[E <: EdgeDocument[E, N, T], N <: Document[N], T <: Document[T]](startIds: Set[Id[N]])(implicit ev: =:=[Doc, E]): EdgeTraversalBuilder[E, N, T]
Create a traversal for DFS with multiple starting nodes
- def dfs[E <: EdgeDocument[E, N, T], N <: Document[N], T <: Document[T]](startId: Id[N], maxDepth: Int)(implicit ev: =:=[Doc, E]): EdgeTraversalBuilder[E, N, T]
Create a traversal for DFS with specified depth
- def dfs[E <: EdgeDocument[E, N, T], N <: Document[N], T <: Document[T]](startId: Id[N])(implicit ev: =:=[Doc, E]): EdgeTraversalBuilder[E, N, T]
Create a traversal for DFS
- def edgesFor[E <: EdgeDocument[E, From, To], From <: Document[From], To <: Document[To]](fromId: Id[From])(implicit ev: =:=[Doc, E]): Stream[E]
Get a stream of edges for the specified from ID
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def from[D <: Document[D]](ids: Set[Id[D]]): DocumentTraversalBuilder[D]
Start a traversal from a set of document IDs
- def from[D <: Document[D]](id: Id[D]): DocumentTraversalBuilder[D]
Start a traversal from a single document ID
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def reachableFrom[E <: EdgeDocument[E, From, To], From <: Document[From], To <: Document[To]](from: Id[From], maxDepth: Int = Int.MaxValue)(implicit ev: =:=[From, To]): Stream[E]
Find all nodes reachable from a starting ID by following edges
- def shortestPaths[E <: EdgeDocument[E, From, To], From <: Document[From], To <: Document[To]](from: Id[From], to: Id[To], maxDepth: Int = Int.MaxValue, bufferSize: Int = 100, edgeFilter: (E) => Boolean = (_: E) => true)(implicit ev: =:=[Doc, E]): Stream[TraversalPath[E, From, To]]
Find shortest paths between two nodes
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)