Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/graph/custom/non-valued/interface/arrow-graph-base.ts>ArrowGraphBase

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
namespace ArrowGraphBase
import { ArrowGraphBase } from "https://deno.land/x/rimbu@0.13.5/graph/custom/non-valued/interface/arrow-graph-base.ts";

Interfaces

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

interface ArrowGraphBase
implements GraphBase<N, Tp>
import { type ArrowGraphBase } from "https://deno.land/x/rimbu@0.13.5/graph/custom/non-valued/interface/arrow-graph-base.ts";

Properties

readonly
isDirected: true

Returns true since this is an arrow (directed) graph instance.

Methods

isSink<UN = N>(node: RelatedTo<N, UN>): boolean

Returns true if the given node has no outgoing connections.

isSource<UN = N>(node: RelatedTo<N, UN>): boolean

Returns true if the given node has no incoming connections.