import { Traverse } from "https://deno.land/x/rimbu@1.2.1/core/main/index.ts";
const { traverseDepthFirstCustom } = Traverse;
Returns a stream of connections that can be reached in the given graph
starting at the given startNode
, and using depth-first traversal. It can
avoid loops if needed in a custom way by supplying the addVisitedNode
function.
Type Parameters
G extends VariantGraphBase<N, any>