Skip to main content

Module node

Module node 

Source
Expand description

Node types for graph algorithms.

This module provides strongly-typed wrappers for graph concepts:

  • NodeId: Unique identifier for graph vertices
  • Distance: BFS distance/level from source
  • ComponentId: Connected component identifier

Structsยง

ComponentId
Connected component identifier.
Distance
Distance from source in BFS.
NodeId
Node identifier (vertex ID).