Skip to main content
The Deno 2 Release Candidate is 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@1.1.0/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@1.1.0/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.