I have a spreadsheet application with formulas. I am looking for the best algorithm for detecting circular references among the formulas. The current approach I have is slow and
Perhaps you have motives for checking on your own, but Excel already checks for circular references automatically. You can use the Worksheets.CircularReference property in VBA to access this information.