Options
All
  • Public
  • Public/Protected
  • All
Menu

This implementation uses the Kosaraju-Sharir algorithm. The constructor takes time proportional to

V + E (in the worst case), where V is the number of vertices and E is the number of edges. Afterwards, the id, count, and areStronglyConnected operations take constant time.

Type parameters

  • V

Hierarchy

  • KosarajuSharirSCC

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private ids

ids: StringMap<number> = new StringMap<number>()

Private marked

marked: StringMap<boolean> = new StringMap<boolean>()

Private sccCount

sccCount: number = 0

Methods

count

  • count(): number

Private dfs

id

stronglyConnected

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc