Options
All
  • Public
  • Public/Protected
  • All
Menu

This implementation uses breadth-first search. The constructor takes time proportional to V + E, where V is the number of vertices and E is the number of edges. It uses extra space (not including the digraph) proportional to V.

Type parameters

  • V

Hierarchy

  • BreadthFirstDirectedPaths

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private edgeTo

edgeTo: StringMap<object> = new StringMap<Vertex<V>>()

Private marked

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

Private source

source: Vertex<V>

the source vertex

Methods

Private bfs

hasPathTo

  • hasPathTo(v: Vertex<V>): boolean

pathTo

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