Dynamic Topology

Illustrates updating the graph topology (adding branches) on-the-fly without recomputing the entire decomposition.

Dynamic Topology Update
from sgwt import DyConvolve, impulse
from sgwt import DELAY_TEXAS as L
from sgwt import COORD_TEXAS as C

X = impulse(L, n=1200)
scales = [0.1, 1, 10]
poles = [1/s for s in scales]

with DyConvolve(L, poles) as conv:
    Y_before = conv.bandpass(X)
    conv.addbranch(1200, 600, 1/(1e-3)**2)
    Y_after = conv.bandpass(X)
Dynamic Topology Update Example