Options
All
  • Public
  • Public/Protected
  • All
Menu

The DirectedEulerianPath class represents a data type for finding an Eulerian path in a digraph. An Eulerian path is a path (not necessarily simple) that uses every edge in the digraph exactly once.

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

Type parameters

  • V

Hierarchy

  • DirectedEulerianPath

Implemented by

Index

Methods

hasEulerianPath

  • hasEulerianPath(): boolean
  • Returns true if the digraph has an Eulerian path.

    Returns boolean

    true if the digraph has an Eulerian path; false otherwise.

path

  • Returns the sequence of vertices on an Eulerian path.

    Returns Collection<Vertex<V>>

    the sequence of vertices on an Eulerian path; empty collection if no such path.

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