Skip to main content
Module

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

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
namespace ValuedGraphElement
Re-export
import { ValuedGraphElement } from "https://deno.land/x/rimbu@0.14.0/graph/custom/index.ts";

Functions

Returns the nodes of the link graph element if the given element e is a Link element, or undefined otherwise.

Returns the element at the given key in the graph element e, if the element is a Link element, or returns the given otherwise value otherwise.

Returns the value of a single node graph element if the given element e is a single node, or the given otherwise fallback value otherwise.

Returns true if the given graph element e is a 3-tuple. Instructs the compiler that the type is a 3-tuple.

Returns true if the given graph element e is a single node. Instructs the compiler that the type is a 1-tuple.

type alias ValuedGraphElement
Re-export
import { type ValuedGraphElement } from "https://deno.land/x/rimbu@0.14.0/graph/custom/index.ts";
definition: [N] | ValuedLink<N, V>