Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Graph

Hierarchy

  • Graph

Index

Properties

Methods

Properties

_internal

_internal: Map<number, Array<edge>> = new Map()

Methods

addEdge

  • addEdge(to: number, from: number, type?: string): void
  • Parameters

    • to: number
    • from: number
    • Default value type: string = "input"

    Returns void

addVertex

  • addVertex(vertex: number): void
  • Parameters

    • vertex: number

    Returns void

toEdge

  • toEdge(): Array<Object>

Generated using TypeDoc