Options
All
  • Public
  • Public/Protected
  • All
Menu

Stores a node in a Coxeter Diagram.

Hierarchy

Index

Constructors

constructor

  • new CDNode(value: string): CDNode

Properties

arrayIndex

arrayIndex: number | undefined

The index of the node in the corresponding graph.

labels

labels: string[]

The labels of the edges adjacent to this node.

neighbors

neighbors: CDNode[]

The nodes adjacent to this one in the graph.

traversed

traversed: boolean

Stores whether a node has been traversed, used in some algorithms.

value

value: string

The value stored in a node.

Methods

_getComponent

getComponent

  • getComponent(reset?: boolean): CDGraph

linkTo

  • linkTo(node: CDNode, label: string): void

parseLabel

  • parseLabel(index: number): number
  • Gets the numeric value of a given label.

    Parameters

    • index: number

      The index of the label.

    Returns number

    The label as a number.

parseNode

  • parseNode(): number

Object literals

Static Private dictionary

dictionary: object

Stores all of the possible node labels and their corresponding values.

F

F: number = (3 + Math.sqrt(5)) / 2

f

f: number = (1 + Math.sqrt(5)) / 2

h

h: number = Math.sqrt(3)

k

k: number = Math.sqrt(2 + Math.sqrt(2))

o

o: number = 0

q

q: number = Math.SQRT2

u

u: number = 2

v

v: number = (Math.sqrt(5) - 1) / 2

w

w: number = 1 + Math.sqrt(2)

x

x: number = 1

Generated using TypeDoc, the 1/31/2021 at 6:18:55 AM