Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Graph<T>

Generic graph interface.

Type parameters

  • T

    type of vertex on the graph.

Hierarchy

Implemented by

Index

Methods

Methods

from

  • from(v: T): T[]
  • Parameters

    • v: T

      a vertex on the graph.

    Returns T[]

    a list of vertices connected to the given vertex.

id

  • id(v: T): number | undefined
  • Parameters

    • v: T

      a vertex on the graph.

    Returns number | undefined

    an unique numeric identifier for the given node.

Generated using TypeDoc