Options
All
  • Public
  • Public/Protected
  • All
Menu

The DirectedEulerianCycle class represents a data type for finding an Eulerian cycle or path in a digraph. An Eulerian cycle is a cycle (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

  • DirectedEulerianCycle

Implemented by

Index

Methods

cycle

  • Returns the sequence of vertices on an Eulerian cycle.

    Returns Collection<Vertex<V>>

    the sequence of vertices on an Eulerian cycle or empty collection if no such cycle.

hasEulerianCycle

  • hasEulerianCycle(): boolean
  • Returns true if the digraph has an Eulerian cycle.

    Returns boolean

    true if the digraph has an Eulerian cycle; 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