This repository contains a suite of functions to perform feedback loop detection in ordinary differential equation (ODE) models in Matlab. Feedback loops (cycles, circuits) are paths from one node (a variable of the ODE) to itself without visiting any other node twice, and they have important regulatory functions. Together with the loop length it is also reported whether the loop is a positive or a negative feedback loop. An upper limit of the returned number of feedback loops can be entered to limit the runtime (which scales with feedback loop count).
LoopDetect_for_Matlab was developed under MATLAB2019b, only relies on MATLAB base function and does not require any MATLAB toolboxes.
Inspired by: tarjan(e)
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!