Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Graph<T>

Type parameters

  • T

Hierarchy

  • Graph

Index

Properties

Methods

Properties

Private adj

adj: Map<T, T[]> = new Map<T, T[]>()

Private inDegrees

inDegrees: Map<T, number> = new Map<T, number>()

Methods

addEdge

  • addEdge(fr: T, to: T): void

addVertex

  • addVertex(v: T): void

popAll

  • popAll(): any[]

Generated using TypeDoc