Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Vertex

A single node in a Graph. The typical use case is to extend this class with what ever one wants to store in the graph.

Hierarchy

  • Vertex

Indexable

[key: string]: any

A single node in a Graph. The typical use case is to extend this class with what ever one wants to store in the graph.

Index

Constructors

Properties

Accessors

Constructors

constructor

  • new Vertex(id: number | string, type?: undefined | string): Vertex
  • Parameters

    • id: number | string
    • Optional type: undefined | string

    Returns Vertex

Properties

Private vertexID

vertexID: number | string

Holds the vertex's id

Private vertexType

vertexType: string | undefined

Holds the vertexe's type

Accessors

id

  • get id(): number | string
  • Returns the id of the vertex

    Returns number | string

type

  • get type(): string | undefined
  • Returns the type of this vertex.

    Returns string | undefined

Generated using TypeDoc