Optional boolean indicating if edges should only be traversed from source to target. Default is true.
Visitor function that takes the current vertex and the incoming edge as arguments. The traversal stops if the function returns false.
Optional
Optional Map from cells to true for the visited cells.
Optional boolean to traverse in inverse direction. Default is false. This is ignored if directed is false.
Traverses the (directed) graph invoking the given function for each visited vertex and edge. The function is invoked with the current vertex and the incoming edge as a parameter. This implementation makes sure each vertex is only visited once. The function may return false if the traversal should stop at the given vertex.
Example: