Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/graph/custom/index.ts>GraphContext

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class GraphContext
implements [GraphBase.Context]<UN, Tp>
import { GraphContext } from "https://deno.land/x/rimbu@0.13.5/graph/custom/index.ts";

Constructors

new
GraphContext(
isDirected: Dir,
typeTag: TT,
linkMapContext: WithGraphValues<Tp, UN, any>["linkMapContext"],
linkConnectionsContext: WithGraphValues<Tp, UN, any>["linkConnectionsContext"],
)

Type Parameters

UN
TT extends string
Dir extends boolean

Properties

readonly
_empty: WithGraphValues<Tp, UN, any>["normal"]
readonly
_fixedType: any
readonly
builder: () => any
readonly
empty: <N extends UN>() => any
readonly
from: any
readonly
of: <N>(...values: ArrayNonEmpty<GraphElement<N>>) => any
reducer: <N extends UN>(source?: StreamSource<GraphElement<N>>) => any

Methods

createBuilder<N extends UN>(source?: WithGraphValues<Tp, N, any>["nonEmpty"]): WithGraphValues<Tp, N, any>["builder"]
createNonEmpty<N extends UN>(linkMap: WithGraphValues<Tp, N, any>["linkMapNonEmpty"], connectionSize: number): WithGraphValues<Tp, N, any>["nonEmpty"]
isNonEmptyInstance(source: any): source is WithGraphValues<Tp, UN, any>["nonEmpty"]