Skip to main content
Module

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

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

Constructors

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

Properties

readonly
_empty: any
readonly
_fixedType: UN
readonly
builder: () => any
readonly
empty: <N extends UN, V>() => any
readonly
from: any
readonly
of: any
readonly
reducer: <N extends UN, V>(source?: StreamSource<ValuedGraphElement<N, V>>) => any

Methods

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