Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/rimbu/core/menu/graph/index.ts>Valued.Edge.Sorted

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
namespace Valued.Edge.Sorted
import { Valued } from "https://deno.land/x/rimbu@0.13.1/core/menu/graph/index.ts";
const { Sorted } = Valued.Edge;

Interfaces

A mutable EdgeValuedGraphSorted builder used to efficiently create new immutable instances. See the Graph documentation and the EdgeValuedGraphSorted.Builder API documentation

The EdgeValuedGraphSorted's Context instance that serves as a factory for all related immutable instances and builders.

A non-empty type-invariant immutable valued edge (undirected) graph. The nodes are internally maintained using SortedMaps See the Graph documentation and the EdgeValuedGraphSorted API documentation

Utility interface that provides higher-kinded types for this collection.

interface Valued.Edge.Sorted
implements EdgeValuedGraphBase<N, V, EdgeValuedGraphSorted.Types>
import { type Valued } from "https://deno.land/x/rimbu@0.13.1/core/menu/graph/index.ts";
const { Sorted } = Valued.Edge;

An type-invariant immutable valued edge (undirected) graph. The nodes are internally maintained using SortedMaps See the Graph documentation and the EdgeValuedGraphSorted API documentation

Examples

Example 1

const g1 = EdgeValuedGraphSorted.empty<number, string>()
const g2 = EdgeValuedGraphSorted.of([1], [2, 3, 'a'], [2, 4, 'b'])
variable Valued.Edge.Sorted
import { Valued } from "https://deno.land/x/rimbu@0.13.1/core/menu/graph/index.ts";
const { Sorted } = Valued.Edge;

type

EdgeValuedGrapSortedCreators