Skip to main content
Module

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

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

Interfaces

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

The EdgeGraphSorted'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 connections are internally maintained using sorted collections See the Graph documentation and the EdgeGraphSorted API documentation

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

interface NonValued.Edge.Sorted
implements EdgeGraphBase<N, EdgeGraphSorted.Types>
import { type NonValued } from "https://deno.land/x/rimbu@0.14.0/core/menu/graph/index.ts";
const { Sorted } = NonValued.Edge;

An type-invariant immutable valued edge (undirected) graph. The connections are internally maintained using sorted collections See the Graph documentation and the EdgeGraphSorted API documentation

Examples

Example 1

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

type

EdgeGraphSortedCreators