Options
All
  • Public
  • Public/Protected
  • All
Menu

Some common methods and algorithms that are not specific to a graph data structure implementation.

Hierarchy

  • Algorithm

Index

Methods

Static findWeaklyConnectedComponents

  • Finds all weakly connected components of the graph.

    Type parameters

    • TVertex

    • TEdgeData

    Parameters

    • graph: CommonAdapter<TVertex, TEdgeData>

      Graph data structure to use.

    • Default value setConstructor: SetConstructor = Set

      Optional Set implementation.

    Returns WeaklyConnectedComponent<TVertex, TEdgeData>[]

    The weakly connected components of the given graph.

Static getNeighbors

  • getNeighbors<TVertex>(graph: CommonAdapter<TVertex>, vertex: TVertex): Iterator<TVertex>
  • Returns an iterator over the given vertices predecessors and successors, in that order.

    Type parameters

    • TVertex

    Parameters

    • graph: CommonAdapter<TVertex>

      A graph data structure.

    • vertex: TVertex

      Vertex whose predecessors and successors are fetched.

    Returns Iterator<TVertex>

    The vertex's predecessors and successors in that order.

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