Skip to main content

Module graph

Module graph 

Expand description

Network graph related API traits. Network graph API traits: topology, pathfinding, and edge quality observations.

  • NetworkGraphView — read-only node/edge queries and graph identity
  • NetworkGraphConnectivity — topology enumeration (connected/reachable edges)
  • NetworkGraphWrite — graph mutation (add/remove nodes and edges)
  • NetworkGraphUpdate — record measurements from probes and transport
  • NetworkGraphTraverse — pathfinding (simple paths, loopbacks)
  • HoprGraphApi — composite of all graph traits (full read+write access)
  • HoprGraphReadApi — composite of view+traverse (read-only access)
  • ValueFn — value function trait for path selection
  • Edge observable traits for quality measurements (QoS, latency, capacity)

Modules§

function
Edge/path value-function utilities used by graph traversal.
traits
Graph operation traits and observability interfaces.
types
Shared graph telemetry and measurement types.

Structs§

EdgeCapacityUpdate
Update for the edge between src and dest.

Enums§

EdgeTransportTelemetry
Enum representing different types of telemetry data used by the CT mechanism.
MeasurableEdge
Edge measurements accepted for an edge in the graph.
NetworkGraphError
Error observed during the measurements updating the graph edges.

Traits§

EdgeImmediateProtocolObservable
Trait for reading immediate hop protocol conformance metrics.
EdgeLinkObservable
Trait for recording and querying transport-level link quality metrics for a transport link.
EdgeObservable
Combined trait for full read/write access to edge observations.
EdgeObservableRead
Trait for reading aggregated quality-of-service observations from a graph edge.
HoprGraphApi
Complete set of HOPR graph operation APIs.
HoprGraphReadApi
Read-only graph API for external consumers.
MeasurableNode
Marker trait for node identifiers that can be converted into an off-chain public key.
MeasurablePath
Measurable path segment telemetry.
MeasurablePeer
Measurable neighbor peer attributes.
NetworkGraphConnectivity
Topology enumeration — which edges exist and which are reachable.
NetworkGraphTraverse
A trait specifying the graph traversal functionality.
NetworkGraphUpdate
A trait for recording observed measurement updates to graph edges and nodes.
NetworkGraphView
A trait specifying read-only graph view functionality.
NetworkGraphWrite
A trait for mutating the graph topology.
ValueFn
A fold-like value function for graph traversal path scoring.