Skip to main content

diff_networks

Function diff_networks 

Source
pub fn diff_networks(a: &Network, b: &Network) -> CaseDiff
Expand description

Produce a structured diff between two Network objects.

Buses are matched by bus_number, branches by (from_bus, to_bus, circuit), and generators by canonical generator ID, synthesizing missing IDs deterministically from bus order when needed.