Options
All
  • Public
  • Public/Protected
  • All
Menu

Class for holding Edge data. Edge is defined by source and target vertices and its weight. All edges are considered to be directed edges.

Hierarchy

Index

Constructors

Properties

Constructors

constructor

  • Creates a directed edge.

    Parameters

    • source: Vertex

      Vertex from which edge originates.

    • target: Vertex | null

      Vertex at which edge ends.

    • Default value weight: number | null = null

      Weight of the edge. Can be null if edge has no weight.

    Returns Edge

Properties

source

source: Vertex

Vertex from which edge originates.

target

target: Vertex | null

Vertex at which edge ends.

weight

weight: number | null

Weight of the edge. Can be null if edge has no weight.

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