Skip to main content

classify_edges

Function classify_edges 

Source
pub fn classify_edges(pedal: &PedalDef) -> Vec<ClassifiedEdge>
Expand description

Classify the boundary of every component edge in pedal into a BoundaryPolicy, oriented by directed signal flow.

For each edge (node_a, node_b) owned by a component, the ends are NAMED (source vs sink) by the directed, rail-blocked signal distance from the circuit input (signal_flow::directed_signal_distances_from_in): the lower-distance end is the flow SOURCE. The BACK-edge bit, however, is derived from the output-side passive closure (see [control_sink_is_back_edge]) — a control electrode fed from the output is feedback — because in transformer-/tube-coupled circuits the directed-distance walk dead-ends at the magnetic/active coupling and cannot orient most edges. The sink port’s class plus the back-edge bit drive BoundaryPolicy::classify.

Behaviour-neutral: the returned policies are not applied to formation.