Skip to main content

Module graph

Module graph 

Source
Expand description

Graph topology types for flow-based development networks.

This module defines the static structure of a network: nodes, ports, edges, and the conditions that govern packet flow (salvo conditions).

Structs§

Edge
A connection between two ports in the graph.
Graph
The static topology of a flow-based network.
Node
A processing unit in the graph with input and output ports.
Port
A port on a node where packets can enter or exit.
PortRef
A reference to a specific port on a specific node.
SalvoCondition
A condition that defines when packets can trigger an epoch or be sent.

Enums§

GraphValidationError
Errors that can occur during graph validation
MaxSalvos
Specifies the maximum number of times a salvo condition can trigger.
PacketCount
Specifies how many packets to take from a port in a salvo.
PortSlotSpec
Specifies the capacity of a port (how many packets it can hold).
PortState
A predicate on the state of a port, used in salvo conditions.
PortType
Whether a port is for input or output.
SalvoConditionTerm
A boolean expression over port states, used to define when salvos can trigger.

Functions§

evaluate_salvo_condition
Evaluates a salvo condition term against the current port packet counts.

Type Aliases§

NodeName
The name of a node in the graph.
PortName
The name of a port on a node.
SalvoConditionName
The name of a salvo condition.