Skip to main content
Module

x/structurae/index.ts>AdjacencyMatrixUnweightedDirected

Data structures for high-performance JavaScript applications.
Latest
class AdjacencyMatrixUnweightedDirected
implements AdjacencyStructure
extends Uint32Array
import { AdjacencyMatrixUnweightedDirected } from "https://deno.land/x/structurae@4.0.1/index.ts";

Implements the Adjacency Matrix structure for unweighted directed graphs.

Properties

_size: number
readonly
edges
empty: number
readonly
size
vertices: number

Methods

addEdge(x: number, y: number): this
getCoordinates(x: number, y?): [number, number]
getEdge(x: number, y: number): number
getIndex(x: number, y: number): number
hasEdge(x: number, y: number): boolean
inEdges(vertex: number)
isFull(): boolean
outEdges(vertex: number)
removeEdge(x: number, y: number): this

Static Properties

directed: boolean
weighted: boolean
readonly
[Symbol.species]: Uint32ArrayConstructor

Static Methods

create<T extends AdjacencyStructureConstructor<TypedArrayConstructors>>(this: T, vertices: number): InstanceType<T>
getLength(vertices: number)