Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LabeledUndirectedGraph<Node, Label>

Undirected graph with labeled edges

Type parameters

  • Node

  • Label

Hierarchy

  • LabeledUndirectedGraph

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

edges

edges: Set<ILabeledEdge<Node, Label>>

The set of edges.

Private neighborLists

neighborLists: Map<Node, Set<[Node, Label]>>

nodes

nodes: Set<Node>

The set of nodes.

Methods

neighborsOf

  • neighborsOf(node: Node): Set<[Node, Label]>
  • Parameters

    • node: Node

      The target node

    Returns Set<[Node, Label]>

    he set of nodes that are neighbors of the node.

Generated using TypeDoc