Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/graph/custom/common/valued-link.ts

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
import * as rimbu from "https://deno.land/x/rimbu@1.0.2/graph/custom/common/valued-link.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 Aliases

A valued connection between two nodes, being a 3-valued tuple of which the first two elements are nodes and the last element a value