import { Traverse } from "https://deno.land/x/rimbu@1.1.0/mod.ts";
const { traverseDepthFirstHashed } = 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 avoids
loops by internally placing the visited nodes in a HashSet builder.
Type Parameters
G extends VariantGraphBase<N, any>