Options
All
  • Public
  • Public/Protected
  • All
Menu

The Directed class represents a data type for determining the vertices reachable from a given source vertex s (or set of source vertices) in a digraph.

For additional documentation, see Section 4.2 of Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.

Type parameters

  • V

Hierarchy

  • Directed

Implemented by

Index

Methods

Methods

count

  • count(): number
  • Returns the number of vertices reachable from the source vertex (or source vertices).

    Returns number

    the number of vertices reachable from the source vertex (or source vertices).

marked

  • marked(v: Vertex<V>): boolean
  • Is there a directed path from the source vertex (or any of the source vertices) and vertex v?

    Parameters

    Returns boolean

    true if there is a directed path, false otherwise.

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