StepFunctionTraversal

lightdb.traverse.GraphTraversal.StepFunctionTraversal
case class StepFunctionTraversal[N <: Document[N]](startIds: Set[Id[N]], step: Id[N] => Task[Set[Id[N]]], maxDepth: Int)

A traversal that uses a step function to find neighbors This provides compatibility with legacy code that used BFSEngine.withStepFunction

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def collectAllReachable: Task[Set[Id[N]]]

Collect all nodes reachable from the starting nodes This mimics the BFSEngine.StepFunctionBFSEngine.collectAllReachable() method

Collect all nodes reachable from the starting nodes This mimics the BFSEngine.StepFunctionBFSEngine.collectAllReachable() method

Attributes

def stream: Stream[Id[N]]

Get a stream of all reachable nodes

Get a stream of all reachable nodes

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product