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.
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 Methods
create<T extends AdjacencyStructureConstructor<TypedArrayConstructors>>(this: T, vertices: number): InstanceType<T>
getLength(vertices: number)